File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -520,16 +520,16 @@ workflow leaves a place::
520
520
{
521
521
return [
522
522
LeaveEvent::getName('blog_publishing') => 'onLeave',
523
+ // if you prefer, you can write the event name manually like this:
524
+ // 'workflow.blog_publishing.leave' => 'onLeave',
523
525
];
524
526
}
525
527
}
526
528
527
529
.. tip ::
528
530
529
531
All built-in workflow events define the ``getName(?string $workflowName, ?string $transitionOrPlaceName) ``
530
- method to build the full event name (e.g. ``'workflow.blog_publishing.leave' ``)
531
- without having to work with strings.
532
-
532
+ method to build the full event name without having to deal with strings.
533
533
You can also use this method in your custom events via the
534
534
:class: `Symfony\\ Component\\ Workflow\\ Event\\ EventNameTrait `.
535
535
You can’t perform that action at this time.
0 commit comments