Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[tagged_iterator yaml tag with AutoconfigureTag] Bug #59532

Open
@GrinWay

Description

@GrinWay

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp