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

Update service_decoration.rst #10654

Closed
wants to merge 2 commits into from
Closed

Update service_decoration.rst #10654

wants to merge 2 commits into from

Conversation

nclavaud
Copy link
Contributor

@nclavaud nclavaud commented Nov 9, 2018

Make it clear that the first paragraph is not about decorating a service, but completely overriding it. Decorating is explained in the next paragraph, so the reference to the decorator pattern has been moved there. Otherwise it's easy to get confused when reading the doc.

The original text was clear, but then the meaning changed when the file was moved, in commit 141e922#diff-ebbbc2e2adacde7254ce22cf2a32198c

Make it clear that the first paragraph is *not* about decorating a service, but completely overriding it. Decorating is explained in the next paragraph, so the reference to the decorator pattern has been moved there. Otherwise it's easy to get confused when reading the doc.

The original text was clear, but the meaning changed when the file was moved, in commit symfony@141e922#diff-ebbbc2e2adacde7254ce22cf2a32198c
@xabbuh
Copy link
Member

xabbuh commented Nov 11, 2018

Thank you @nclavaud.

xabbuh added a commit that referenced this pull request Nov 11, 2018
This PR was squashed before being merged into the 2.8 branch (closes #10654).

Discussion
----------

Update service_decoration.rst

Make it clear that the first paragraph is *not* about decorating a service, but completely overriding it. Decorating is explained in the next paragraph, so the reference to the decorator pattern has been moved there. Otherwise it's easy to get confused when reading the doc.

The original text was clear, but then the meaning changed when the file was moved, in commit 141e922#diff-ebbbc2e2adacde7254ce22cf2a32198c

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

0386306 Update service_decoration.rst
@xabbuh xabbuh closed this Nov 11, 2018
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

5 participants