Start your All-Access Pass to unlock this challenge
How can you enforce the order of services when using #[AutowireIterator]?
#[AutowireIterator]
Manually order the services in the container.
Use the $indexAttribute property on #[AutowireIterator].
$indexAttribute
Use the $priority property of #[AsTaggedItem].
$priority
#[AsTaggedItem]
Use the $priority attribute in #[AutowireIterator].