Skip to content

Commit

Permalink
Set missing arguments for class `\Liip\ThemeBundle\Twig\Loader\Filesy…
Browse files Browse the repository at this point in the history
…stemLoader`
  • Loading branch information
emulienfou committed Sep 29, 2018
1 parent 7dce518 commit 7df3ab8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DependencyInjection/Compiler/ThemeCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public function process(ContainerBuilder $container)

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

0 comments on commit 7df3ab8

Please sign in to comment.