File tree 2 files changed +14
-0
lines changed 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -893,6 +893,14 @@ The Serializer component provides several built-in normalizers:
893
893
This normalizer converts :phpclass: `DateInterval ` objects into strings.
894
894
By default, it uses the ``P%yY%mM%dDT%hH%iM%sS `` format.
895
895
896
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
897
+ This normalizer converts a \B ackedEnum objects into strings or integers.
898
+
899
+ .. versionadded :: 5.4
900
+
901
+ The ``BackedEnumNormalizer `` was introduced in Symfony 5.4.
902
+ PHP BackedEnum requires at least PHP 8.1.
903
+
896
904
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer `
897
905
This normalizer works with classes that implement
898
906
:class: `Symfony\\ Component\\ Form\\ FormInterface `.
Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ As well as the following normalizers:
76
76
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer `
77
77
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ConstraintViolationListNormalizer `
78
78
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ProblemNormalizer `
79
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
80
+
81
+ .. versionadded :: 5.4
82
+
83
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
84
+ was introduced in Symfony 5.4. PHP BackedEnum requires at least PHP 8.1.
79
85
80
86
Other :ref: `built-in normalizers <component-serializer-normalizers >` and
81
87
custom normalizers and/or encoders can also be loaded by tagging them as
You can’t perform that action at this time.
0 commit comments