diff --git a/PHPCI/Builder.php b/PHPCI/Builder.php index 7c3c1dc1..1f9d29b1 100644 --- a/PHPCI/Builder.php +++ b/PHPCI/Builder.php @@ -3,6 +3,7 @@ namespace PHPCI; use PHPCI\Model\Build; use b8\Store; +use Symfony\Component\Yaml\Parser as YamlParser; class Builder { @@ -153,7 +154,9 @@ class Builder return false; } - $this->config = yaml_parse_file($this->buildPath . 'phpci.yml'); + $yamlParser = new YamlParser(); + $yamlFile = file_get_contents($this->buildPath . 'phpci.yml'); + $this->config = $yamlParser->parse($yamlFile); if(!isset($this->config['verbose']) || !$this->config['verbose']) { diff --git a/composer.json b/composer.json index 22367854..78e5eefe 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,6 @@ "squizlabs/php_codesniffer": "1.*", "ircmaxell/password-compat": "1.x", "phpspec/phpspec": "2.*", - "ext-yaml": "*" + "symfony/yaml": "2.2.x-dev" } -} \ No newline at end of file +}