Skip to content

Commit fbeea98

Browse files
committed
[FrameworkBundle] Allow to autowire service_container
1 parent 6c171f2 commit fbeea98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Resources/config/services.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
<deprecated>The "%service_id%" service is deprecated since Symfony 2.7 and will be removed in 3.0. Use the "request_stack" service instead.</deprecated>
4747
</service>
4848

49-
<service id="service_container" synthetic="true" />
49+
<service id="service_container" synthetic="true">
50+
<autowiring-type>Symfony\Component\DependencyInjection\ContainerInterface</autowiring-type>
51+
</service>
5052

5153
<service id="kernel" synthetic="true" />
5254

0 commit comments

Comments
 (0)