From 57ac25dfa0af82adebb2d6fe76a618264938e778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Tue, 14 Jan 2020 11:53:20 +0100 Subject: [PATCH] [workflow] Added a way to not fire the announce event --- workflow.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workflow.rst b/workflow.rst index d1c78568879..fcaf6bb90bc 100644 --- a/workflow.rst +++ b/workflow.rst @@ -334,6 +334,10 @@ order: * ``workflow.[workflow name].announce`` * ``workflow.[workflow name].announce.[transition name]`` + You can avoid those events by using the context:: + + $workflow->apply($subject, $transitionName, [Workflow::DISABLE_ANNOUNCE_EVENT => true]); + .. note:: The leaving and entering events are triggered even for transitions that stay