Skip to content

Commit

Permalink
Add service id for profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
toooni committed Jul 22, 2020
1 parent ea42839 commit 9646e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/TwigCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function load(array $config, ContainerBuilder $container)
new Reference(TwigCacheCollector::class),
]);

$container->addDefinitions([$strategy]);
$container->addDefinitions(['twig_cache.profiler' => $strategy]);
}

$container->getDefinition('twig_cache.extension')->replaceArgument(0, $strategy);
Expand Down

0 comments on commit 9646e00

Please sign in to comment.