Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Open
Description
Short bug description
When it comes to theAutoconfigureTag
attribute!tagged_iterator
doesn't processpriority
attribute properly, to sort the collection of services (first with the highest priority)
Prerequisite (preparation for the bug)
If we describe something like that inservices.yaml
services:Namespace\:resource:'PATH'tags: -name:'TAG_NAME'
And also we have class of that Namespace from that PATH (additionally with an Attribute)
<?phpnamespaceNamespace;useSymfony\Component\DependencyInjection\Attribute\AutoconfigureTag;#[AutoconfigureTag('TAG_NAME', ['priority' =>1])]class SomeClass {}
Bug
When I dump the service withphp bin/console debug:container Namespace\SomeClass
it show the correctpriority
attribute1
But If I use!tagged_iterator
yaml tag to collect all services with this TAG_NAME I get an incorrect collection
where!tagged_iterator
doesn't read the priority from theAutoconfigureTag
attribute