From 325dd85703e4d95292e69244839e7567b468c5ad Mon Sep 17 00:00:00 2001 From: David Sanchez Date: Sat, 29 Sep 2018 12:48:22 -0400 Subject: [PATCH] Replace method `getDefinition` by `findDefinition` --- DependencyInjection/Compiler/ThemeCompilerPass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Compiler/ThemeCompilerPass.php b/DependencyInjection/Compiler/ThemeCompilerPass.php index a025656..e38c3c4 100644 --- a/DependencyInjection/Compiler/ThemeCompilerPass.php +++ b/DependencyInjection/Compiler/ThemeCompilerPass.php @@ -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'))); }