Skip to content

Commit ab6ea9c

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Serializer] Document support of PHP backed enumerations
2 parents 4fc9596 + 9249444 commit ab6ea9c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

components/serializer.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,9 @@ The Serializer component provides several built-in normalizers:
897897
This normalizer converts :phpclass:`DateInterval` objects into strings.
898898
By default, it uses the ``P%yY%mM%dDT%hH%iM%sS`` format.
899899

900+
:class:`Symfony\\Component\\Serializer\\Normalizer\\BackedEnumNormalizer`
901+
This normalizer converts a \BackedEnum objects into strings or integers.
902+
900903
:class:`Symfony\\Component\\Serializer\\Normalizer\\FormErrorNormalizer`
901904
This normalizer works with classes that implement
902905
:class:`Symfony\\Component\\Form\\FormInterface`.

serializer.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ As well as the following normalizers:
7676
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer`
7777
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer`
7878
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer`
79+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\BackedEnumNormalizer`
7980

8081
Other :ref:`built-in normalizers <component-serializer-normalizers>` and
8182
custom normalizers and/or encoders can also be loaded by tagging them as

0 commit comments

Comments
 (0)