Skip to content

Commit b78255f

Browse files
committed
Tweaks
1 parent 0435d4a commit b78255f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflow.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,16 +520,16 @@ workflow leaves a place::
520520
{
521521
return [
522522
LeaveEvent::getName('blog_publishing') => 'onLeave',
523+
// if you prefer, you can write the event name manually like this:
524+
// 'workflow.blog_publishing.leave' => 'onLeave',
523525
];
524526
}
525527
}
526528

527529
.. tip::
528530

529531
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.
533533
You can also use this method in your custom events via the
534534
:class:`Symfony\\Component\\Workflow\\Event\\EventNameTrait`.
535535

0 commit comments

Comments
 (0)