Skip to content

Commit aece95d

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Minor [Workflow] Document marking::getContext()
2 parents 27264dd + 0e1c690 commit aece95d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

workflow.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,18 @@ workflow leaves a place::
440440
}
441441
}
442442

443+
If some listeners update the context during a transition, you can retrieve
444+
it via the marking::
445+
446+
$marking = $workflow->apply($post, 'to_review');
447+
448+
// contains the new value
449+
$marking->getContext();
450+
451+
.. versionadded:: 5.4
452+
453+
The ability to get the new value from the marking was introduced in Symfony 5.4.
454+
443455
.. _workflow-usage-guard-events:
444456

445457
Guard Events

0 commit comments

Comments
 (0)