File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -382,14 +382,14 @@ order:
382
382
383
383
$workflow->apply($subject, $transitionName, [Workflow::DISABLE_ANNOUNCE_EVENT => true]);
384
384
385
- The context is accessible in all events::
385
+ The context is accessible in all events except for the `` workflow.guard `` events::
386
386
387
- // $context must be an array
388
- $context = ['context_key' => 'context_value'];
389
- $workflow->apply($subject, $transitionName, $context);
387
+ // $context must be an array
388
+ $context = ['context_key' => 'context_value'];
389
+ $workflow->apply($subject, $transitionName, $context);
390
390
391
- // in an event listener (workflow.guard events)
392
- $context = $event->getContext(); // returns ['context']
391
+ // in an event listener (workflow.guard events)
392
+ $context = $event->getContext(); // returns ['context']
393
393
394
394
.. note ::
395
395
You can’t perform that action at this time.
0 commit comments