Skip to content

Commit 6780017

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: [Serializer] Fix YAML normalizationContext and denormalizationContext names
2 parents 9ef310b + bbe120e commit 6780017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

serializer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ You can also specify a context specific to normalization or denormalization:
516516
attributes:
517517
createdAt:
518518
contexts:
519-
- normalizationContext: { datetime_format: 'Y-m-d' }
520-
denormalizationContext: { datetime_format: !php/const \DateTime::RFC3339 }
519+
- normalization_context: { datetime_format: 'Y-m-d' }
520+
denormalization_context: { datetime_format: !php/const \DateTime::RFC3339 }
521521
522522
.. code-block:: xml
523523
@@ -1428,7 +1428,7 @@ normalizers (in order of priority):
14281428
14291429
$propertyInfo = new PropertyInfoExtractor([], [new PhpDocExtractor(), new ReflectionExtractor()]);
14301430
$normalizers = [new ObjectNormalizer(new ClassMetadataFactory(new AttributeLoader()), null, null, $propertyInfo), new ArrayDenormalizer()];
1431-
1431+
14321432
$this->serializer = new Serializer($normalizers, [new JsonEncoder()]);
14331433
14341434
:class:`Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer`

0 commit comments

Comments
 (0)