File tree 2 files changed +5
-3
lines changed
src/Symfony/Bundle/TwigBundle
DependencyInjection/Compiler 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -71,5 +71,9 @@ public function process(ContainerBuilder $container)
71
71
if ($ container ->has ('assets.packages ' )) {
72
72
$ container ->getDefinition ('twig.extension.assets ' )->addTag ('twig.extension ' );
73
73
}
74
+
75
+ if (class_exists ('Symfony\Component\Yaml\Parser ' )) {
76
+ $ container ->getDefinition ('twig.extension.yaml ' )->addTag ('twig.extension ' );
77
+ }
74
78
}
75
79
}
Original file line number Diff line number Diff line change 95
95
<argument type =" service" id =" router" />
96
96
</service >
97
97
98
- <service id =" twig.extension.yaml" class =" Symfony\Bridge\Twig\Extension\YamlExtension" public =" false" >
99
- <tag name =" twig.extension" />
100
- </service >
98
+ <service id =" twig.extension.yaml" class =" Symfony\Bridge\Twig\Extension\YamlExtension" public =" false" />
101
99
102
100
<service id =" twig.extension.debug.stopwatch" class =" Symfony\Bridge\Twig\Extension\StopwatchExtension" public =" false" >
103
101
<tag name =" twig.extension" />
You can’t perform that action at this time.
0 commit comments