-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[DependencyInjection] Make #[AsTaggedItem] repeatable
#59088
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
[DependencyInjection] Make #[AsTaggedItem] repeatable
#59088
Conversation
98b479c to
1d91ded
Compare
1d91ded to
34e3466
Compare
AsTaggedItem attribute repeatable#[AsTaggedItem] repeatable
#[AsTaggedItem] repeatable#[AsTaggedItem] repeatable
|
Thank you @alexandre-daubois. |
… container builder (xabbuh) This PR was merged into the 7.3 branch. Discussion ---------- [DependencyInjection] reuse the reflector tracked by the container builder | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT reworking the implementation from #59088 a bit Commits ------- b8b5fb4 reuse the reflector tracked by the container builder
|
I had a look at this code and the implementation doesn't make any sense sorry. This should be reverted, it's clumsy as it doesn't respect the flexibility provided by DI tags. |
|
I agree with @nicolas-grekas. This implementation will read AsTaggedItem even when tag attributes are configured explicitly, which is not how this tag is meant to work. |
|
I'm working on a fix, it should be ready soon. |
…ggeditem] (nicolas-grekas) This PR was merged into the 7.3 branch. Discussion ---------- [DependencyInjection] Fix merging explicit tags and #[AsTaggeditem] | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #59088 (comment) | License | MIT Instead of #62327 Commits ------- e31b192 [DependencyInjection] Fix merging explicit tags and #[AsTaggeditem]
Allow to repeat the
AsTaggedItemattribute: