Merge pull request #9 from meadsteve/symfony-yaml

Merging the use of the Symfony YAML parser, removing the requirement for the YAML extension. Thanks @meadsteve :)
This commit is contained in:
Dan Cryer 2013-05-14 12:46:42 -07:00
commit 9f0e04d8e3
2 changed files with 6 additions and 3 deletions

View file

@ -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'])
{

View file

@ -30,6 +30,6 @@
"squizlabs/php_codesniffer": "1.*",
"ircmaxell/password-compat": "1.x",
"phpspec/phpspec": "2.*",
"ext-yaml": "*"
"symfony/yaml": "2.2.x-dev"
}
}
}