Skip to content

Service Subscribers & Locators/Indexing the Collection of Services: Code example should include the "index_by" key #12704

Closed
@codegain

Description

@codegain

In symfony/symfony#34637 I pointed out that default_index_method without index_by is useless and the indexing logic will not be triggered.

The code example below If you prefer to use another method name, add a default_index_method attribute to the locator service defining the name of this custom method: should include the index_by key with some value other than null.

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