You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AsTaggedItem is supposed to work together with TaggedIteratorArgument. That's what the word "Tagged" means in the name of the attribute. When not requesting for "tagged" items, the returned array should be a regular list.
#[AutoconfigureTag('some_tag', ['priority' => 10])] is what you might want to add to set the priority for this tag.
If we were to implement something like you expected, I'd suggest doing it via a tag, eg ['default_attributes', ['priority' => 10]], and we could of course add a dedicated attribute to make it easier to define this tag.
Or maybe ['default_attributes', ['some_tag' => ['priority' => 10]]] for more specificity?
I'm still not quite understanding when/why I would use AsTaggedItem over this though. Most of these attributes aren't documented so that could probably be the place to explain.
Symfony version(s) affected
5.4+
Description
If a service uses
AsTaggedItem
to set the priority, this priority isn't displayed when runningdebug:container --tag x
.How to reproduce
#47406 (comment)
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: