Closed
Description
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.