Skip to content

Commit 1a44477

Browse files
[Workflow] Deprecate GuardEvent::getContext() method
1 parent 2625a78 commit 1a44477

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)