Skip to content

Commit

Permalink
fixbug bc sf2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
liverbool committed Aug 25, 2017
1 parent a584c91 commit c200ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/PhpMobTwigModifyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit c200ba4

Please sign in to comment.