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

Appearance settings

Commit 57ac25d

Browse filesBrowse files
lyrixxjaviereguiluz
authored andcommitted
[workflow] Added a way to not fire the announce event
1 parent 7e2135a commit 57ac25d
Copy full SHA for 57ac25d

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎workflow.rst

Copy file name to clipboardExpand all lines: workflow.rst
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ order:
334334
* ``workflow.[workflow name].announce``
335335
* ``workflow.[workflow name].announce.[transition name]``
336336

337+
You can avoid those events by using the context::
338+
339+
$workflow->apply($subject, $transitionName, [Workflow::DISABLE_ANNOUNCE_EVENT => true]);
340+
337341
.. note::
338342

339343
The leaving and entering events are triggered even for transitions that stay

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.