File tree 2 files changed +4
-1
lines changed
src/Symfony/Bundle/TwigBundle
DependencyInjection/Compiler
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -75,5 +75,9 @@ public function process(ContainerBuilder $container)
75
75
if (class_exists ('Symfony\Component\Yaml\Parser ' )) {
76
76
$ container ->getDefinition ('twig.extension.yaml ' )->addTag ('twig.extension ' );
77
77
}
78
+
79
+ if (class_exists ('Symfony\Component\Stopwatch\Stopwatch ' )) {
80
+ $ container ->getDefinition ('twig.extension.debug.stopwatch ' )->addTag ('twig.extension ' );
81
+ }
78
82
}
79
83
}
Original file line number Diff line number Diff line change 98
98
<service id =" twig.extension.yaml" class =" Symfony\Bridge\Twig\Extension\YamlExtension" public =" false" />
99
99
100
100
<service id =" twig.extension.debug.stopwatch" class =" Symfony\Bridge\Twig\Extension\StopwatchExtension" public =" false" >
101
- <tag name =" twig.extension" />
102
101
<argument type =" service" id =" debug.stopwatch" on-invalid =" ignore" />
103
102
<argument >%kernel.debug%</argument >
104
103
</service >
You can’t perform that action at this time.
0 commit comments