[DependencyInjection] Improve documentation about differences between AutowireIterator
and AutowireLocator
#20260
Labels
AutowireIterator
and AutowireLocator
#20260
The doc about these Attributes states
Though these two Attributes are not "switchable" as-is because
AutowireLocator
can accept a string (tag) or an array of class (classname orSubscribedService
) whileAutowireIterator
can only accept a string (tag).If it's intended maybe, the doc should make the difference clear, especially because there is no example of usage of
AutowireIterator
.It it's not intended, then the problem lies in
DependencyInjection
code andAutowireIterator
should be able to accept an array of class too.The text was updated successfully, but these errors were encountered: