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 249434e commit e5c176cCopy full SHA for e5c176c
workflow.rst
@@ -509,6 +509,16 @@ missing a title::
509
510
The optional second argument of ``setBlocked()`` was introduced in Symfony 5.1.
511
512
+.. note::
513
+
514
+ When using guard listeners which imply intensive workloads (CPU, Database
515
+ or longer-running code blocks), if you only want them to be fired when strictly
516
+ necessary (only when ``Workflow::can()`` or ``Workflow::apply()`` is executed),
517
+ be sure to disable ``Workflow::DISABLE_ANNOUNCE_EVENT`` as indicated in
518
+ :ref:`Choosing which Events to Dispatch <workflow-chosing-events-to-dispatch>`
519
520
+.. _workflow-chosing-events-to-dispatch:
521
522
Choosing which Events to Dispatch
523
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
524
0 commit comments