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] Exclude referencing service (self) in TaggedIteratorArgument
#48685
Conversation
5faa2d4
to
e5570b4
Compare
Friendly ping @lyrixx |
src/Symfony/Component/DependencyInjection/Compiler/PriorityTaggedServiceTrait.php
Outdated
Show resolved
Hide resolved
|
@chalasr the missing part is not the resolution. It is the support for the new argument added in the constructor ( |
e5570b4
to
0cbb176
Compare
Got it, thanks. Support added |
0cbb176
to
dd7c6dd
Compare
Rebased. Reviews welcome |
src/Symfony/Component/DependencyInjection/Argument/TaggedIteratorArgument.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Compiler/ResolveTaggedIteratorArgumentPass.php
Outdated
Show resolved
Hide resolved
So, this changes the current behavior, but we're confident this won't break anyone, right? |
dd7c6dd
to
0a7138d
Compare
TaggedIteratorArgument
TaggedIteratorArgument
0a7138d
to
d357973
Compare
Yes, at least I am :) |
src/Symfony/Component/DependencyInjection/Compiler/ResolveTaggedIteratorArgumentPass.php
Outdated
Show resolved
Hide resolved
91d624c
to
a8afe94
Compare
a8afe94
to
34a24ca
Compare
Anything else? :) |
src/Symfony/Component/DependencyInjection/Argument/TaggedIteratorArgument.php
Outdated
Show resolved
Hide resolved
8b5f6fc
to
49f0d8a
Compare
49f0d8a
to
1cadd46
Compare
Thank you @chalasr. |
Suggested by @OskarStark in https://twitter.com/OskarStark/status/1594641457226436608?s=20&t=Wbqw_Mu2tMYQ0iouaG8yig.
This PR avoids the need to explicitly indicate to exclude the referencing service when using
#[TaggedIterator]
and variants.Before:
After:
I went with no deprecation as I think the breakage potential is close to zero, but happy to reconsider.