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

Remove suggestion to change the .class parameters #7090

Closed
wants to merge 3 commits into from

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Oct 27, 2016

To my knowledge, this practice has been discouraged and the corresponding configuration hooks have been dropped in Symfony 3.0.

To my knowledge, this practice has been discouraged and the corresponding configuration hooks have been dropped in Symfony 3.0.
If you want to modify service definitions of another bundle, you can use a compiler
pass to change the class of the service or to modify method calls. In the following
example, the implementing class for the ``original-service-id`` is changed to
``Acme\DemoBundle\YourService`.
Copy link
Member

Choose a reason for hiding this comment

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

this is missing the second backtick after the class name

If you want to modify service definitions of another bundle, you can use a compiler
pass to change the class of the service or to modify method calls. In the following
example, the implementing class for the ``original-service-id`` is changed to
``Acme\DemoBundle\YourService``.
Copy link
Member

Choose a reason for hiding this comment

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

Oh, we need to end this paragraph with two colons so that the following paragraph is actually interpreted as a code block.

@xabbuh
Copy link
Member

xabbuh commented Oct 27, 2016

For the records, this will fix #7093.

@wouterj
Copy link
Member

wouterj commented Oct 27, 2016

👍 (except that we don't support 3.0 anymore, I suggest to merge it straight into 2.7)
status: reviewed

@mpdude
Copy link
Contributor Author

mpdude commented Oct 27, 2016

@wouterj wait, I think for 2.7 it's still ok. Pick a 3.x branch of your choice.

Should we add a note on 2.x that this is discouraged?

@mpdude
Copy link
Contributor Author

mpdude commented Oct 27, 2016

Also, would it help to add a pointer to decorated services, or do they solve another problem?

@mpdude
Copy link
Contributor Author

mpdude commented Oct 27, 2016

Possible duplicate of #6927 and #6912

@xabbuh
Copy link
Member

xabbuh commented Oct 30, 2016

Thank you @mpdude.

xabbuh added a commit that referenced this pull request Oct 30, 2016
This PR was submitted for the 3.0 branch but it was merged into the 2.7 branch instead (closes #7090).

Discussion
----------

Remove suggestion to change the `.class` parameters

To my knowledge, this practice has been discouraged and the corresponding configuration hooks have been dropped in Symfony 3.0.

Commits
-------

4d59cad Remove suggestion to change the  parameters
@xabbuh xabbuh closed this Oct 30, 2016
@xabbuh
Copy link
Member

xabbuh commented Oct 30, 2016

@mpdude Mentioning service decoration here sounds useful (a short paragraph linking to the existing chapter should be enough).

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.

None yet

4 participants