diff --git a/DependencyInjection/PhpMobTwigModifyExtension.php b/DependencyInjection/PhpMobTwigModifyExtension.php index 40b6821..2904bc1 100644 --- a/DependencyInjection/PhpMobTwigModifyExtension.php +++ b/DependencyInjection/PhpMobTwigModifyExtension.php @@ -44,7 +44,7 @@ public function load(array $configs, ContainerBuilder $container) $loader->load('services.xml'); $definition = $container->getDefinition('phpmob_twig_modify.modifier'); - $definition->setArgument(0, new Reference($config['cache'] ?: 'phpmob_twig_modify.cache.local_file')); + $definition->replaceArgument(0, new Reference($config['cache'] ?: 'phpmob_twig_modify.cache.local_file')); foreach ($config['modifiers'] as $key => $options) { $definition->addMethodCall('addType', [$key, $options]);