We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d411301 commit 717663aCopy full SHA for 717663a
src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php
@@ -85,7 +85,11 @@ public function process(ContainerBuilder $container)
85
86
if ($container->getParameter('kernel.debug')) {
87
$container->getDefinition('twig.extension.profiler')->addTag('twig.extension');
88
- $container->getDefinition('twig.extension.debug')->addTag('twig.extension');
+
89
+ // only register if the improved version from DebugBundle is *not* present
90
+ if (!$container->has('twig.extension.dump')) {
91
+ $container->getDefinition('twig.extension.debug')->addTag('twig.extension');
92
+ }
93
}
94
95
$twigLoader = $container->getDefinition('twig.loader.native_filesystem');
0 commit comments