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:
commit
9f0e04d8e3
|
@ -3,6 +3,7 @@
|
||||||
namespace PHPCI;
|
namespace PHPCI;
|
||||||
use PHPCI\Model\Build;
|
use PHPCI\Model\Build;
|
||||||
use b8\Store;
|
use b8\Store;
|
||||||
|
use Symfony\Component\Yaml\Parser as YamlParser;
|
||||||
|
|
||||||
class Builder
|
class Builder
|
||||||
{
|
{
|
||||||
|
@ -153,7 +154,9 @@ class Builder
|
||||||
return false;
|
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'])
|
if(!isset($this->config['verbose']) || !$this->config['verbose'])
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,6 @@
|
||||||
"squizlabs/php_codesniffer": "1.*",
|
"squizlabs/php_codesniffer": "1.*",
|
||||||
"ircmaxell/password-compat": "1.x",
|
"ircmaxell/password-compat": "1.x",
|
||||||
"phpspec/phpspec": "2.*",
|
"phpspec/phpspec": "2.*",
|
||||||
"ext-yaml": "*"
|
"symfony/yaml": "2.2.x-dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue