Skip to content

[DI] getDefaultIndexName() is not called by default #45809

Closed
@Seb33300

Description

@Seb33300

Symfony version(s) affected

5.4.6

Description

In the documentation we can read:

Just like the priority, you can also implement a static getDefaultIndexName() method in the handlers and omit the index attribute (key)

But this method is not working as expected, when I implement it and omit the index attribute, the method is not called.

I need to force the default_index_method value which should be optional if we use the default method name.

How to reproduce

You can use the documentation example to reproduce the issue.

Possible Solution

No response

Additional Context

No response

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