Skip to content

Symfony tagged_iterator and tagged_locator argument parameter name are wrong #8

@sad270

Description

@sad270

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions