Skip to content

Commit

Permalink
Replace method call setArguments by replaceArgument like suggeste…
Browse files Browse the repository at this point in the history
…d by @xabbuh
  • Loading branch information
emulienfou committed Oct 6, 2018
1 parent fb3abb0 commit b361b47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DependencyInjection/Compiler/ThemeCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public function process(ContainerBuilder $container)
$twigFilesystemLoaderDefinition->setClass($container->getParameter('liip_theme.filesystem_loader.class'));

if (false === $container->has('templating')) {
$twigFilesystemLoaderDefinition->setArguments(array(
$container->getDefinition('liip_theme.templating_locator'),
$container->getDefinition('templating.filename_parser')
));
$twigFilesystemLoaderDefinition->replaceArgument(0,
$container->getDefinition('liip_theme.templating_locator'));
$twigFilesystemLoaderDefinition->replaceArgument(1,
$container->getDefinition('templating.filename_parser'));
}

$twigFilesystemLoaderDefinition->addMethodCall('setActiveTheme', array(new Reference('liip_theme.active_theme')));
Expand Down

0 comments on commit b361b47

Please sign in to comment.