Skip to content

Commit 9cf19c8

Browse files
committed
minor #13327 Add missing normalizers introduced between 3.4 and 4.4 (l-vo)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes #13327). Discussion ---------- Add missing normalizers introduced between 3.4 and 4.4 Commits ------- 08be095 Add missing normalizers introduced between 3.4 and 4.4
2 parents 40a1a3a + 08be095 commit 9cf19c8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

serializer.rst

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ As well as the following normalizers:
6969
to deal with objects implementing the :phpclass:`JsonSerializable` interface
7070
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer` to
7171
denormalize arrays of objects using a format like `MyObject[]` (note the `[]` suffix)
72+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer` for objects implementing the :class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface` interface
73+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer` for :class:`Symfony\\Component\\ErrorHandler\\Exception\\FlattenException` objects
7274

7375
.. versionadded:: 4.3
7476

serializer/normalizers.rst

+3
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ Symfony includes the following normalizers but you can also
2626

2727
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer` to
2828
normalize PHP object using the :doc:`PropertyAccessor component </components/property_access>`;
29+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer` for :phpclass:`DateTimeZone` objects
2930
* :class:`Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer` to
3031
normalize PHP object using an object that implements
3132
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface`;
3233
* :class:`Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer` to
3334
normalize PHP object using the getter and setter methods of the object;
3435
* :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer` to
3536
normalize PHP object using `PHP reflection`_.
37+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer` for objects implementing the :class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface` interface
38+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer` for :class:`Symfony\\Component\\ErrorHandler\\Exception\\FlattenException` objects
3639

3740
.. _`PHP reflection`: https://www.php.net/manual/en/book.reflection.php

0 commit comments

Comments
 (0)