Skip to content

Commit d4739d4

Browse files
author
Alexandre Guidet
committed
update yaml parser and correct parsing conf file
1 parent 3d6e0aa commit d4739d4

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: php
22

33
php:
44
- '5.6'
5-
- '7.1'
5+
- '7.0'
66
- hhvm
77

88
install:

Migrate/Command/AbstractEnvCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ protected function init(InputInterface $input, OutputInterface $output, $env = n
7171

7272
$envFile = $locator->locate($env . '.yml');
7373

74-
$loader = new Yaml();
75-
$conf = $loader->parse($envFile);
74+
$conf = Yaml::parse(file_get_contents($envFile));
7675

7776
$this->config = $conf;
7877

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"symfony/process": "~2.6",
1818
"symfony/config": "~2.6",
1919
"cocur/slugify": "~1.0",
20-
"symfony/yaml": "~2.6"
20+
"symfony/yaml": "~3.1"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "*"

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)