Skip to content
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

Fixed the section about getting services from a command #3889

Merged
merged 2 commits into from
Jun 7, 2014
Merged

Fixed the section about getting services from a command #3889

merged 2 commits into from
Jun 7, 2014

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? yes
Applies to 2.3+
Fixed tickets #890

Hopefully this PR fixes one of the oldest errors of the Symfony documentation.


However for other services the solution might be more complex. You may even need
to manually create a ``request`` service and then call the ``enterScope('request')``
and the ``set('request', $request)`` methods.
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove this section and refer to the scopes article in the DI components docs for solutions to these more complex cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand exactly what are you suggesting to remove? Do you suggest to remove all the contents introduced in this section?

Copy link
Member

Choose a reason for hiding this comment

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

I meant this paragraph, sorry for being unclear about that

@weaverryan
Copy link
Member

This is a really great explanation. Thanks Javier!

@weaverryan weaverryan merged commit 8993beb into symfony:2.3 Jun 7, 2014
weaverryan added a commit that referenced this pull request Jun 7, 2014
… (javiereguiluz)

This PR was merged into the 2.3 branch.

Discussion
----------

Fixed the section about getting services from a command

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | 2.3+
| Fixed tickets | #890

Hopefully this PR fixes one of the oldest errors of the Symfony documentation.

Commits
-------

8993beb Linked the cookbook about DIC scopes
0f3c218 Fixed the section about getting services from a command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants