You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #17342 [DependencyInjection] Typo on how default defaultIndexMethod work (Kleinast)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
[DependencyInjection] Typo on how default defaultIndexMethod work
Following the documentation, I was trying the static method getDefaultIndexName() to have named tagged service and it didn't work. I looked at the code [here](https://github.com/symfony/symfony/blob/v5.4.1/src/Symfony/Component/DependencyInjection/Argument/TaggedIteratorArgument.php#L44) in how I understand it, you have to declare the index_by attribute to be able to use the getDefault****Name() method.
I tryed to improve the documentation, but I think it could be better explained that what I did.
It is the same logique for the getDefault***Priority() method.
Commits
-------
720e9f7 [DependencyInjection] Typo on how default defaultIndexMethod work
0 commit comments