Skip to content

Commit fc5a648

Browse files
committed
use the parseFile() method of the YAML parser
1 parent cc067d8 commit fc5a648

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function load($file, $type = null)
5858
}
5959

6060
try {
61-
$parsedConfig = $this->yamlParser->parse(file_get_contents($path));
61+
$parsedConfig = $this->yamlParser->parseFile($path);
6262
} catch (ParseException $e) {
6363
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML.', $path), 0, $e);
6464
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require-dev": {
2222
"symfony/config": "~2.8|~3.0|~4.0",
2323
"symfony/http-foundation": "~2.8|~3.0|~4.0",
24-
"symfony/yaml": "~3.3|~4.0",
24+
"symfony/yaml": "~3.4|~4.0",
2525
"symfony/expression-language": "~2.8|~3.0|~4.0",
2626
"symfony/dependency-injection": "~3.3|~4.0",
2727
"doctrine/annotations": "~1.0",
@@ -31,7 +31,7 @@
3131
"conflict": {
3232
"symfony/config": "<2.8",
3333
"symfony/dependency-injection": "<3.3",
34-
"symfony/yaml": "<3.3"
34+
"symfony/yaml": "<3.4"
3535
},
3636
"suggest": {
3737
"symfony/http-foundation": "For using a Symfony Request object",

0 commit comments

Comments
 (0)