Skip to content

Commit b2edf48

Browse files
committed
minor #18801 [Workflow] Deprecate GuardEvent::getContext() method (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [Workflow] Deprecate `GuardEvent::getContext()` method Fix #18799 Commits ------- 1a44477 [Workflow] Deprecate `GuardEvent::getContext()` method
2 parents ba5b4ab + 1a44477 commit b2edf48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

workflow.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ The context is accessible in all events except for the ``workflow.guard`` events
466466
// in an event listener (workflow.guard events)
467467
$context = $event->getContext(); // returns ['context']
468468

469+
.. deprecated:: 6.4
470+
471+
Gathering events context is deprecated since Symfony 6.4 and the
472+
:method:`Symfony\\Component\\Workflow\\Event::getContext` method will be
473+
removed in Symfony 7.0.
474+
469475
.. note::
470476

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

0 commit comments

Comments
 (0)