Skip to content

Commit

Permalink
Replace method getDefinition by findDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
emulienfou committed Sep 29, 2018
1 parent 1741d42 commit 325dd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/ThemeCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function process(ContainerBuilder $container)
->replaceArgument(2, null);
}

$twigFilesystemLoaderDefinition = $container->getDefinition('twig.loader.filesystem');
$twigFilesystemLoaderDefinition = $container->findDefinition('twig.loader.filesystem');
$twigFilesystemLoaderDefinition->setClass($container->getParameter('liip_theme.filesystem_loader.class'));
$twigFilesystemLoaderDefinition->addMethodCall('setActiveTheme', array(new Reference('liip_theme.active_theme')));
}
Expand Down

0 comments on commit 325dd85

Please sign in to comment.