File tree 2 files changed +8
-2
lines changed
src/Symfony/Bundle/TwigBundle
DependencyInjection/Compiler
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,13 @@ public function process(ContainerBuilder $container)
30
30
if ($ container ->has ('translator ' )) {
31
31
$ container ->getDefinition ('twig.extension.trans ' )->addTag ('twig.extension ' );
32
32
}
33
+
34
+ if ($ container ->has ('router ' )) {
35
+ $ container ->getDefinition ('twig.extension.routing ' )->addTag ('twig.extension ' );
36
+ }
37
+
38
+ if ($ container ->has ('fragment.handler ' )) {
39
+ $ container ->getDefinition ('twig.extension.httpkernel ' )->addTag ('twig.extension ' );
40
+ }
33
41
}
34
42
}
Original file line number Diff line number Diff line change 79
79
</service >
80
80
81
81
<service id =" twig.extension.routing" class =" %twig.extension.routing.class%" public =" false" >
82
- <tag name =" twig.extension" />
83
82
<argument type =" service" id =" router" />
84
83
</service >
85
84
88
87
</service >
89
88
90
89
<service id =" twig.extension.httpkernel" class =" %twig.extension.httpkernel.class%" public =" false" >
91
- <tag name =" twig.extension" />
92
90
<argument type =" service" id =" fragment.handler" />
93
91
</service >
94
92
You can’t perform that action at this time.
0 commit comments