Skip to content

Commit c5b8731

Browse files
committed
Add missing buit-in normalizers
1 parent 903b1b4 commit c5b8731

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

serializer/normalizers.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,19 @@ 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\\DateTimeNormalizer` for
30+
objects implementing the :phpclass:`DateTimeInterface` interface
31+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateIntervalNormalizer` for :phpclass:`DateInterval` objects
32+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` to
33+
transform :phpclass:`SplFileInfo` objects in `Data URIs`_
2934
* :class:`Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer` to
3035
normalize PHP object using an object that implements
3136
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface`;
3237
* :class:`Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer` to
3338
normalize PHP object using the getter and setter methods of the object;
3439
* :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer` to
3540
normalize PHP object using `PHP reflection`_.
41+
* :class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer`
42+
to deal with objects implementing the :phpclass:`JsonSerializable` interface
3643

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

0 commit comments

Comments
 (0)