Skip to content

Commit 0718196

Browse files
committed
minor #16710 [Workflow] move versionadded directive out of list item (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Workflow] move versionadded directive out of list item This information is not only related to the `workflow.announce` event, but provides important information for other events too. Commits ------- 612ec53 move versionadded directive out of list item
2 parents 38902a5 + 612ec53 commit 0718196

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

workflow.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -386,17 +386,17 @@ order:
386386

387387
The ``Workflow::DISABLE_ANNOUNCE_EVENT`` constant was introduced in Symfony 5.1.
388388

389-
.. versionadded:: 5.2
389+
.. versionadded:: 5.2
390390

391-
In Symfony 5.2, the context is customizable for all events except for
392-
``workflow.guard`` events, which will not receive the custom ``$context``::
391+
In Symfony 5.2, the context is customizable for all events except for
392+
``workflow.guard`` events, which will not receive the custom ``$context``::
393393

394-
// $context must be an array
395-
$context = ['context_key' => 'context_value'];
396-
$workflow->apply($subject, $transitionName, $context);
394+
// $context must be an array
395+
$context = ['context_key' => 'context_value'];
396+
$workflow->apply($subject, $transitionName, $context);
397397

398-
// in an event listener
399-
$context = $event->getContext(); // returns ['context']
398+
// in an event listener
399+
$context = $event->getContext(); // returns ['context']
400400

401401
.. note::
402402

0 commit comments

Comments
 (0)