Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Workflow] ANNOUNCE event should be optional #35286

Closed
@Harry-Dunne

Description

@Harry-Dunne
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.4.2

The workflow.announce event has a side effect : it fires guard events for all accessible transitions from the subject's place, even if there is no subscriber registered for this event. AFAIK it's the only event of the workflow component with this behavior.

Code in guard event, usually business rules, can be costly to execute. This cost is useless if the announce event is not leveraged, so the dispatching of this event should be optional.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions