diff --git a/DependencyInjection/TwigCacheExtension.php b/DependencyInjection/TwigCacheExtension.php index d4cb6b8..edd0979 100644 --- a/DependencyInjection/TwigCacheExtension.php +++ b/DependencyInjection/TwigCacheExtension.php @@ -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);