8000 [FrameworkBundle] Allow to autowire service_container · PBWebMedia/symfony@4e2eef0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e2eef0

Browse files
committed
[FrameworkBundle] Allow to autowire service_container
1 parent 5991565 commit 4e2eef0

File tree

1 file changed

+3
-1
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/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)
0