[DependencyInjection] Add documentation about service decoration#3753
[DependencyInjection] Add documentation about service decoration#3753romainneutron wants to merge 1 commit intosymfony:masterfrom
Conversation
romainneutron
commented
Apr 3, 2014
| Q | A |
|---|---|
| Doc fix? | yes |
| New docs? | yes (symfony/symfony#10600) |
| Applies to | 2.5+ |
| Fixed tickets | #3745 |
|
PR updated. @stof I've not addressed your comment #3753 (comment) yet. I don't really get what you mean |
|
@romainneutron you say "You can change the parent service name if you want to:" in the line from @stof's comment, it should be "inner service name" instead of "parent service name" |
|
@wouterj It has already been fixed ^^ |
|
You sentence reads as follow:
When reading this, people could think that the conventional id |
|
I would add a note that most of the time, the decorator service should be declared private, as you will not need to retrieve it as If the original service is public, this will not have much impact (the runtime access of aliases has been optimized in Symfony 2.4 already so there won't be any overhead if both I don't have any use case in mind where you will want your decorator service to have a public id. |
|
@stof thanks for clarification, I've added a note about what you explained in #3753 (comment) |
|
PR has been updated |
There was a problem hiding this comment.
Ist this necessary for this example? We don't have it in either the YAML or XML configuration.
|
PR updated, I've fixed code examples |
There was a problem hiding this comment.
you should use double quotes for consistency. And there should be no spaces inside [], only inside {}
|
PR updated |