Skip to content

Commit

Permalink
Don't pass the file name to Yaml::parse
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Jul 25, 2016
1 parent e0f5618 commit a05efa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provider/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function collectConfigs()
foreach ($bundles as $bundle) {
$reflection = new \ReflectionClass($bundle);
if (is_file($file = dirname($reflection->getFilename()) . '/Resources/config/requirejs.yml')) {
$requirejs = Yaml::parse(realpath($file));
$requirejs = Yaml::parse(file_get_contents(realpath($file)));
$config = self::arrayMergeRecursiveDistinct($config, $requirejs);
}
}
Expand Down

0 comments on commit a05efa1

Please sign in to comment.