File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -897,6 +897,14 @@ The Serializer component provides several built-in normalizers:
897
897
This normalizer converts :phpclass: `DateInterval ` objects into strings.
898
898
By default, it uses the ``P%yY%mM%dDT%hH%iM%sS `` format.
899
899
900
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ BackedEnumNormalizer `
901
+ This normalizer converts a \B ackedEnum objects into strings or integers.
902
+
903
+ .. versionadded :: 5.4
904
+
905
+ The ``BackedEnumNormalizer `` was introduced in Symfony
906
+ 5.4. PHP BackedEnum require at least PHP 8.1.
907
+
900
908
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer `
901
909
This normalizer works with classes that implement
902
910
:class: `Symfony\\ Component\\ Form\\ FormInterface `.
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. PHP BackedEnum require at least PHP 8.1.
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