Skip to content

Commit cadc106

Browse files
committed
use the parseFile() method of the YAML parser
1 parent 936bf6d commit cadc106

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
@@ -39,7 +39,7 @@ protected function loadResource($resource)
3939
}
4040

4141
try {
42-
$messages = $this->yamlParser->parse(file_get_contents($resource));
42+
$messages = $this->yamlParser->parseFile($resource);
4343
} catch (ParseException $e) {
4444
throw new InvalidResourceException(sprintf('Error parsing YAML, invalid file "%s"', $resource), 0, $e);
4545
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"symfony/config": "~2.8|~3.0|~4.0",
2424
"symfony/dependency-injection": "~3.4|~4.0",
2525
"symfony/intl": "^2.8.18|^3.2.5|~4.0",
26-
"symfony/yaml": "~3.3|~4.0",
26+
"symfony/yaml": "~3.4|~4.0",
2727
"symfony/finder": "~2.8|~3.0|~4.0",
2828
"psr/log": "~1.0"
2929
},
3030
"conflict": {
3131
"symfony/config": "<2.8",
3232
"symfony/dependency-injection": "<3.4",
33-
"symfony/yaml": "<3.3"
33+
"symfony/yaml": "<3.4"
3434
},
3535
"suggest": {
3636
"symfony/config": "",

0 commit comments

Comments
 (0)