From c200ba4d2aaad11d83396b41ee94eb8dbba8d9a4 Mon Sep 17 00:00:00 2001 From: liverbool Date: Fri, 25 Aug 2017 17:30:34 +0700 Subject: [PATCH] fixbug bc sf2.8 --- DependencyInjection/PhpMobTwigModifyExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);