Start your All-Access Pass to unlock this challenge
When using #[AutowireIterator] to inject an iterable of services, why did we need to specify the indexAttribute?
#[AutowireIterator]
indexAttribute
To ensure the iterable is keyed using the $index property from #[AsTaggedItem].
$index
#[AsTaggedItem]
To inject the services in alphabetical order.
To set the priority of the services.
To map the services by their class names.