We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0435d4a commit b78255fCopy full SHA for b78255f
workflow.rst
@@ -520,16 +520,16 @@ workflow leaves a place::
520
{
521
return [
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',
525
];
526
}
527
528
529
.. tip::
530
531
All built-in workflow events define the ``getName(?string $workflowName, ?string $transitionOrPlaceName)``
- method to build the full event name (e.g. ``'workflow.blog_publishing.leave'``)
- without having to work with strings.
532
-
+ method to build the full event name without having to deal with strings.
533
You can also use this method in your custom events via the
534
:class:`Symfony\\Component\\Workflow\\Event\\EventNameTrait`.
535
0 commit comments