Skip to content

Commit ab72f2b

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Added the missing versionadded directives Add missing normalizers introduced between 3.4 and 4.4
2 parents e0d59cd + 58400d3 commit ab72f2b

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
Custom normalizers and/or encoders can also be loaded by tagging them as
7476
:ref:`serializer.normalizer <reference-dic-tags-serializer-normalizer>` and

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)