Skip to content

Commit 756b194

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Removed an unneeded link Add missing buit-in normalizers
2 parents 58400d3 + 6d428b8 commit 756b194

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

serializer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ As well as the following normalizers:
6363
objects implementing the :phpclass:`DateTimeInterface` interface
6464
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer` for
6565
:phpclass:`DateTimeZone` objects
66+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateIntervalNormalizer`
67+
for :phpclass:`DateInterval` objects
6668
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` to
6769
transform :phpclass:`SplFileInfo` objects in `Data URIs`_
6870
* :class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer`

serializer/normalizers.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ 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
29+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer`
30+
for :phpclass:`DateTimeZone` objects
31+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer` for
32+
objects implementing the :phpclass:`DateTimeInterface` interface
33+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateIntervalNormalizer`
34+
for :phpclass:`DateInterval` objects
35+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` to
36+
transform :phpclass:`SplFileInfo` objects in `Data URIs`_
3037
* :class:`Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer` to
3138
normalize PHP object using an object that implements
3239
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface`;
@@ -36,5 +43,8 @@ Symfony includes the following normalizers but you can also
3643
normalize PHP object using `PHP reflection`_.
3744
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer` for objects implementing the :class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface` interface
3845
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer` for :class:`Symfony\\Component\\ErrorHandler\\Exception\\FlattenException` objects
46+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer`
47+
to deal with objects implementing the :phpclass:`JsonSerializable` interface
3948

40-
.. _`PHP reflection`: https://www.php.net/manual/en/book.reflection.php
49+
.. _`Data URIs`: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
50+
.. _`PHP reflection`: https://php.net/manual/en/book.reflection.php

0 commit comments

Comments
 (0)