Skip to content

[Workflow] Deprecated Registry how to deal with #51662

Closed
@mpiot

Description

@mpiot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions