File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -42,5 +42,9 @@ public function process(ContainerBuilder $container)
42
42
if ($ container ->has ('fragment.handler ' )) {
43
43
$ container ->getDefinition ('twig.extension.httpkernel ' )->addTag ('twig.extension ' );
44
44
}
45
+
46
+ if ($ container ->has ('request_stack ' )) {
47
+ $ container ->getDefinition ('twig.extension.httpfoundation ' )->addTag ('twig.extension ' );
48
+ }
45
49
}
46
50
}
Original file line number Diff line number Diff line change 103
103
<argument type =" service" id =" fragment.handler" />
104
104
</service >
105
105
106
+ <service id =" twig.extension.httpfoundation" class =" Symfony\Bridge\Twig\Extension\HttpFoundationExtension" public =" false" >
107
+ <argument type =" service" id =" request_stack" />
108
+ </service >
106
109
107
110
<service id =" twig.extension.form" class =" %twig.extension.form.class%" public =" false" >
108
111
<argument type =" service" id =" twig.form.renderer" />
You can’t perform that action at this time.
0 commit comments