Closed
Description
Symfony version(s) affected
many
Description
With this configuration:
services:
_defaults:
autowire: true
autoconfigure: true
bind:
Psr\Container\ContainerInterface $workflowsLocator2: !tagged_locator { tag: workflow, index_by: name }
and this controller:
public function debug(ContainerInterface $workflowsLocator2)
{
dd([
'workflowsLocator2' => $workflowsLocator2,
]);
}
I expect to have all workflows, but it's not the case.
Fun fact
- it works with iterator
- but not locator
- if I use a constructor, it's OK