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:
731731 This normalizer converts :phpclass: `DateInterval ` objects into strings.
732732 By default, it uses the ``P%yY%mM%dDT%hH%iM%sS `` format.
733733
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+
734740:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ConstraintViolationListNormalizer `
735741 This normalizer converts objects that implement
736742 :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:
6767 for :phpclass: `DateInterval ` objects
6868* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer ` to
6969 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.
7073* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ JsonSerializableNormalizer `
7174 to deal with objects implementing the :phpclass: `JsonSerializable ` interface
7275* :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
3636 transform :phpclass: `SplFileInfo ` objects in `Data URIs `_
3737* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ CustomNormalizer ` to
3838 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.
3942 :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ NormalizableInterface `;
4043* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer ` to
4144 normalize PHP object using the getter and setter methods of the object;
You can’t perform that action at this time.
0 commit comments