File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -386,17 +386,17 @@ order:
386
386
387
387
The ``Workflow::DISABLE_ANNOUNCE_EVENT `` constant was introduced in Symfony 5.1.
388
388
389
- .. versionadded :: 5.2
389
+ .. versionadded :: 5.2
390
390
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 ``::
393
393
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);
397
397
398
- // in an event listener
399
- $context = $event->getContext(); // returns ['context']
398
+ // in an event listener
399
+ $context = $event->getContext(); // returns ['context']
400
400
401
401
.. note ::
402
402
You can’t perform that action at this time.
0 commit comments