-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update service_container for 4.0 #8778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
service_container.rst
Outdated
@@ -302,10 +250,10 @@ type-hints by running: | |||
|
|||
$ php bin/console debug:autowiring | |||
|
|||
This is just a small subset of the output: | |||
This command is your best friends. This is a small subset of the output: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
friend
service_container.rst
Outdated
problem! In fact, this new service is ready to be used. In a controller, for example, | ||
you can type-hint the new ``SiteUpdateManager`` class and use it:: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one blank line is enough
service_container.rst
Outdated
the container will automatically apply certain configuration to your services, based | ||
on your service's *class*. This is mostly used to *auto-tag* your services. | ||
|
||
For example, to create a Twig Extension, you need to create a class, register it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extension?
This PR was merged into the 4.0 branch. Discussion ---------- Update service_container for 4.0 This was already updated by Javier, but it also needed a reword to *really* emphasize the new way of doing things. Commits ------- 6308688 Updating the content of service_container
This was already updated by Javier, but it also needed a reword to really emphasize the new way of doing things.