Skip to content

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

Merged
merged 1 commit into from
Nov 30, 2017
Merged

Update service_container for 4.0 #8778

merged 1 commit into from
Nov 30, 2017

Conversation

weaverryan
Copy link
Member

This was already updated by Javier, but it also needed a reword to really emphasize the new way of doing things.

@weaverryan weaverryan added this to the 4.0 milestone Nov 29, 2017
@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

friend

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::


Copy link
Member

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

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extension?

@weaverryan weaverryan merged commit 6308688 into symfony:4.0 Nov 30, 2017
weaverryan added a commit that referenced this pull request Nov 30, 2017
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
@weaverryan weaverryan deleted the service-changes branch November 30, 2017 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants