diff --git a/Provider/Config.php b/Provider/Config.php index 770fac84d3..94efa49390 100644 --- a/Provider/Config.php +++ b/Provider/Config.php @@ -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); } }