Skip to content

Commit 6631c18

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Workflow] Deprecate `GuardEvent::getContext()` method Fix Serializer context configuration in YAML
2 parents eb44a5e + b2edf48 commit 6631c18

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ You can also specify the context on a per-property basis::
185185
App\Model\Person:
186186
attributes:
187187
createdAt:
188-
context:
189-
datetime_format: 'Y-m-d'
188+
contexts:
189+
- { context: { datetime_format: 'Y-m-d' } }
190190
191191
.. code-block:: xml
192192

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)