Skip to content

Commit 6b799ff

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Serializer] Fix YAML normalizationContext and denormalizationContext names
2 parents d1d94d3 + 6780017 commit 6b799ff

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
@@ -1436,7 +1436,7 @@ normalizers (in order of priority):
14361436
14371437
$propertyInfo = new PropertyInfoExtractor([], [new PhpDocExtractor(), new ReflectionExtractor()]);
14381438
$normalizers = [new ObjectNormalizer(new ClassMetadataFactory(new AttributeLoader()), null, null, $propertyInfo), new ArrayDenormalizer()];
1439-
1439+
14401440
$this->serializer = new Serializer($normalizers, [new JsonEncoder()]);
14411441
14421442
:class:`Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer`

0 commit comments

Comments
 (0)