php-config-printer icon indicating copy to clipboard operation
php-config-printer copied to clipboard

Symfony `tagged_iterator` and `tagged_locator` argument parameter name are wrong

Open sad270 opened this issue 4 months ago • 2 comments

Symfony tagged_iterator and tagged_locator argument parameter name are wrong.

In my case I have :

services:
    App\HandlerCollection:
        arguments: [!tagged_iterator { tag: 'app.handler', default_index_method: 'getIndex' }]

is converted into

    $services->set(HandlerCollection::class)
        ->args([
            tagged_iterator(tag: 'app.handler', default_index_method: 'getIndex'),
        ])
    ;

Exoected to be converted into

    $services->set(HandlerCollection::class)
        ->args([
            tagged_iterator(tag: 'app.handler', defaultIndexMethod: 'getIndex'),
        ])
    ;

there is same issue with all other argmuent (index_by must be convert into indexAttribute for example)

sad270 avatar Sep 29 '25 21:09 sad270