diff --git a/components/serializer.rst b/components/serializer.rst index 4eba1055433..8b2c73654a5 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -737,6 +737,10 @@ There are several types of normalizers available: :phpclass:`DateTime` and :phpclass:`DateTimeImmutable`) into strings. By default, it uses the `RFC3339`_ format. +:class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer` + This normalizer converts :phpclass:`DateTimeZone` objects into strings. + By default, it uses the `RFC3339`_ format. + :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` This normalizer converts :phpclass:`SplFileInfo` objects into a data URI string (``data:...``) such that files can be embedded into serialized data. diff --git a/serializer.rst b/serializer.rst index 85d5cf7ab6b..ee9e245a817 100644 --- a/serializer.rst +++ b/serializer.rst @@ -61,6 +61,8 @@ As well as the following normalizers: handle typical data objects * :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer` for objects implementing the :phpclass:`DateTimeInterface` interface +* :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer` for + :phpclass:`DateTimeZone` objects * :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` to transform :phpclass:`SplFileInfo` objects in `Data URIs`_ * :class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer`