-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Description
Hello,
Regarding the documentation example:
https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
The following configuration example does not appear to work:
return App::config([
'services' => [
'_defaults' => [
'bind' => [
'iterable $rules' => tagged_iterator('app.foo.rule'),
],
],
],
]);According to the documentation, this should inject all services tagged with app.foo.rule into the $rules iterable.
However, it throws the following error:
Am I missing something in the configuration, or is the documentation example incorrect?
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels