From 08be0955b6bc1e8af53bb3f541b2f9c268b0346c Mon Sep 17 00:00:00 2001 From: Laurent VOULLEMIER Date: Tue, 10 Mar 2020 10:56:27 +0100 Subject: [PATCH] Add missing normalizers introduced between 3.4 and 4.4 --- serializer.rst | 2 ++ serializer/normalizers.rst | 3 +++ 2 files changed, 5 insertions(+) diff --git a/serializer.rst b/serializer.rst index 064d34c01d1..bcea9362bce 100644 --- a/serializer.rst +++ b/serializer.rst @@ -69,6 +69,8 @@ As well as the following normalizers: to deal with objects implementing the :phpclass:`JsonSerializable` interface * :class:`Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer` to denormalize arrays of objects using a format like `MyObject[]` (note the `[]` suffix) +* :class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer` for objects implementing the :class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface` interface +* :class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer` for :class:`Symfony\\Component\\ErrorHandler\\Exception\\FlattenException` objects .. versionadded:: 4.3 diff --git a/serializer/normalizers.rst b/serializer/normalizers.rst index 1e38ad80e9a..42a66c284bd 100644 --- a/serializer/normalizers.rst +++ b/serializer/normalizers.rst @@ -26,6 +26,7 @@ Symfony includes the following normalizers but you can also * :class:`Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer` to normalize PHP object using the :doc:`PropertyAccessor component `; +* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer` for :phpclass:`DateTimeZone` objects * :class:`Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer` to normalize PHP object using an object that implements :class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface`; @@ -33,5 +34,7 @@ Symfony includes the following normalizers but you can also normalize PHP object using the getter and setter methods of the object; * :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer` to normalize PHP object using `PHP reflection`_. +* :class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer` for objects implementing the :class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface` interface +* :class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer` for :class:`Symfony\\Component\\ErrorHandler\\Exception\\FlattenException` objects .. _`PHP reflection`: https://www.php.net/manual/en/book.reflection.php