Skip to content

Commit

Permalink
Upgrate to 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-mahoney committed Dec 26, 2014
1 parent a304447 commit 71e6032
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"php" : ">=5.5.0",
"symfony/yaml" : "2.6.1",
"opine/interfaces": "1.0.1",
"opine/bundle" : "2.0.1",
"opine/config" : "3.0.1",
"opine/container" : "2.0.4"
"opine/bundle" : "2.0.2",
"opine/config" : "3.0.2",
"opine/container" : "2.0.5"
},
"require-dev": {
"phpunit/phpunit": "3.7.32"
Expand All @@ -32,5 +32,5 @@
"Opine\\PubSub\\": "src/"
}
},
"version": "2.0.1"
"version": "2.0.2"
}
6 changes: 1 addition & 5 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ private function topicsRead($topicConfig)
if (!file_exists($topicConfig)) {
return;
}
if (function_exists('yaml_parse_file')) {
$config = yaml_parse_file($topicConfig);
} else {
$config = Yaml::parse(file_get_contents($topicConfig));
}
$config = Yaml::parse(file_get_contents($topicConfig));
if ($config == false) {
throw new Exception('Can not parse YAML file: '.$topicConfig);
}
Expand Down

0 comments on commit 71e6032

Please sign in to comment.