You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #13486 No longer recommend injecting the service container (wouterj)
This PR was merged into the master branch.
Discussion
----------
No longer recommend injecting the service container
Fixes#13469
I think it makes sense to no longer document injecting the service container. Service subscriber is the better alternative in any case.
I actually also thought about removing setting a service public at all. But let's keep it for now (it is sometimes usefull in tests see e.g. symfony/symfony#36147 and #12647 . It's also a bit weird to have a "Public Versus Private Services" section that only discusses "private" services
Commits
-------
156ac13 No longer recommend injecting the service container
0 commit comments