-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Add tests for #[TaggedIterator]
& #[TaggedLocator]
on controller arguments
#49500
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
[HttpKernel] Add tests for #[TaggedIterator]
& #[TaggedLocator]
on controller arguments
#49500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Can you please let me know if #[Autowire(new TaggedLocator(...))]
(or #[Autowire(new ServiceLocatorArgument())]
I don't remember) works?
187fa79
to
09f38cf
Compare
@nicolas-grekas No, neither work. As far as I can tell, the |
Funny thing, this does seem to work: #[Autowire([new ServiceLocatorArgument(new TaggedIteratorArgument(...)), new TaggedIteratorArgument(...)])] In this case, the argument is an array with a service locator and an iterator. |
09f38cf
to
226cb98
Compare
226cb98
to
8900199
Compare
#[TaggedIterator]
& #[TaggedLocator]
with controller arguments#[TaggedIterator]
& #[TaggedLocator]
on controller arguments
@nicolas-grekas Yep, #49628 fixed the problem. I've removed all my changes except the test cases as this particular functionality isn't covered anywhere. |
…or] on controller arguments
8900199
to
121e072
Compare
#[TaggedIterator]
& #[TaggedLocator]
on controller arguments#[TaggedIterator]
& #[TaggedLocator]
on controller arguments
#[TaggedIterator]
& #[TaggedLocator]
on controller arguments#[TaggedIterator]
& #[TaggedLocator]
on controller arguments
Thank you @HypeMC. |
I think this doesn't qualify as a bug fix, but an improvement. If I'm wrong please let me know.#49628 fixed the issue, this PR only adds tests now.