File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -894,8 +894,14 @@ The Serializer component provides several built-in normalizers:
894
894
string (``data:... ``) such that files can be embedded into serialized data.
895
895
896
896
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateIntervalNormalizer `
897
- This normalizer converts :phpclass: `DateInterval ` objects into strings.
898
- By default, it uses the ``P%yY%mM%dDT%hH%iM%sS `` format.
897
+ This normalizer converts a \B ackedEnum objects into strings or integers.
898
+
899
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
900
+ This normalizer converts a into strings.
901
+
902
+ .. versionadded :: 5.4
903
+
904
+ The ``BackedEnumNormalizer `` was introduced in Symfony 5.4.
899
905
900
906
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer `
901
907
This normalizer works with classes that implement
Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ As well as the following normalizers:
80
80
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer `
81
81
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ConstraintViolationListNormalizer `
82
82
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ProblemNormalizer `
83
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
84
+
85
+ .. versionadded :: 5.4
86
+
87
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
88
+ was introduced in Symfony 5.4.
83
89
84
90
Other :ref: `built-in normalizers <component-serializer-normalizers >` and
85
91
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