Skip to content

[DependencyInjection] move tags from decorated to decorating service #20207

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
Oct 14, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 11, 2016

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #20150
License MIT
Doc PR

@fabpot
Copy link
Member

fabpot commented Oct 14, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 7def83c into symfony:2.7 Oct 14, 2016
fabpot added a commit that referenced this pull request Oct 14, 2016
…ng service (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] move tags from decorated to decorating service

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20150
| License       | MIT
| Doc PR        |

Commits
-------

7def83c move tags from decorated to decorating service
@xabbuh xabbuh deleted the issue-20150 branch October 14, 2016 14:13
fabpot added a commit that referenced this pull request Oct 23, 2016
…lacing them (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] merge tags instead of completely replacing them

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | yes/no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20150, #20207
| License       | MIT
| Doc PR        |

In #20207, I missed the `array_merge()` call. Thus, previously set tags of the decorating service would have been discarded by the compiler pass.

Commits
-------

c333eb7 merge tags instead of completely replacing them
This was referenced Oct 27, 2016
@goetas
Copy link
Contributor

goetas commented Jun 5, 2020

Is there a way to disable this behavior for certain decoration steps?
i'm trying to do a sort of lazy loading and the container.service_locator tag should stay on the original service and not on the one decorating it.

NVM, It think was a bad idea.

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.

4 participants