Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb78255f

Browse files
committed
Tweaks
1 parent0435d4a commitb78255f

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)

[8]ページ先頭

©2009-2025 Movatter.jp