From 71e6032e98cde35672e4b641f271953098d56734 Mon Sep 17 00:00:00 2001 From: Ryan Mahoney Date: Thu, 25 Dec 2014 22:53:47 -0500 Subject: [PATCH] Upgrate to 2.0.2 --- composer.json | 8 ++++---- src/Model.php | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index d71fed5..bd05f18 100644 --- a/composer.json +++ b/composer.json @@ -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" @@ -32,5 +32,5 @@ "Opine\\PubSub\\": "src/" } }, - "version": "2.0.1" + "version": "2.0.2" } \ No newline at end of file diff --git a/src/Model.php b/src/Model.php index f8c7a4b..2de9575 100644 --- a/src/Model.php +++ b/src/Model.php @@ -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); }