From 9646e007efa1f5aad3d3a808b59ebdb2b719b4bf Mon Sep 17 00:00:00 2001 From: Toni Rudolf Date: Wed, 22 Jul 2020 16:14:59 +0200 Subject: [PATCH] Add service id for profiler --- DependencyInjection/TwigCacheExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);