-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
Description
Hi,
Our application heavily use Workflow and have many validators, custom Twig function, and services that use an Entity or collection of Entity as entry, and check it against its workflow, to do it we use the Registry and it get method that return us the good workflow.
Since the Registry injection is deprecated, we knw that from 7.0 all the application should break, we can use something like:
#[TaggedLocator(tag: 'workflow')] or #[TaggedIterator(tag: 'workflow')] to inject all Workflow, but it seems there is not way to use retrieve the supports attribute to do it (find the good Workflow).
That said, even if this were the case, it's a shame to perform this operation on many validators and many services when an existing class already does it.
Example
No response