File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -731,6 +731,12 @@ There are several types of normalizers available:
731
731
This normalizer converts :phpclass: `DateInterval ` objects into strings.
732
732
By default, it uses the ``P%yY%mM%dDT%hH%iM%sS `` format.
733
733
734
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer `
735
+ This normalizer works with classes that implement
736
+ :class: `Symfony\\ Component\\ Form\\ FormInterface `.
737
+
738
+ It will get errors from the form and normalize them into an normalized array.
739
+
734
740
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ConstraintViolationListNormalizer `
735
741
This normalizer converts objects that implement
736
742
:class: `Symfony\\ Component\\ Validator\\ ConstraintViolationListInterface `
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ As well as the following normalizers:
67
67
for :phpclass: `DateInterval ` objects
68
68
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer ` to
69
69
transform :phpclass: `SplFileInfo ` objects in `Data URIs `_
70
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer ` for
71
+ objects implementing the :class: `Symfony\\ Component\\ Form\\ FormInterface ` to
72
+ normalize form errors.
70
73
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ JsonSerializableNormalizer `
71
74
to deal with objects implementing the :phpclass: `JsonSerializable ` interface
72
75
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer ` to
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ Symfony includes the following normalizers but you can also
36
36
transform :phpclass: `SplFileInfo ` objects in `Data URIs `_
37
37
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ CustomNormalizer ` to
38
38
normalize PHP object using an object that implements
39
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer ` for
40
+ objects implementing the :class: `Symfony\\ Component\\ Form\\ FormInterface ` to
41
+ normalize form errors.
39
42
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ NormalizableInterface `;
40
43
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer ` to
41
44
normalize PHP object using the getter and setter methods of the object;
You can’t perform that action at this time.
0 commit comments