Skip to content

Commit 6812ae6

Browse files
authored
revert parseFile syntax as it force to use last version of symfony/yaml component and symfony too
1 parent 9fde8f8 commit 6812ae6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DependencyInjection/VictoireWidgetSearchExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public function prepend(ContainerBuilder $container)
4545
//If bundle is a widget
4646
if (0 === strpos($bundle->getNamespace(), 'Victoire\\Widget\\')) {
4747
//search for a config file
48-
$widgetConfig = Yaml::parseFile(
48+
$widgetConfig = Yaml::parse(file_get_contents(
4949
sprintf('%s/Resources/config/config.yml', $bundle->getPath())
50-
);
50+
));
5151

5252
if (is_array($widgetConfig)) {
5353
foreach ($widgetConfig['victoire_core']['widgets'] as $_widgetConfig) {

0 commit comments

Comments
 (0)