Dependency Injection #[Attributes]
List Buttons with AutowireIterator
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 2 / 2

When using #[AutowireIterator] to inject an iterable of services, why did we need to specify the indexAttribute?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.