From 57bf9692a4f84794b6d1554ebde73be8258e4384 Mon Sep 17 00:00:00 2001 From: Teoh Han Hui Date: Mon, 17 Oct 2016 15:50:46 +0800 Subject: [PATCH] [Serializer] Support specifying format for DateTimeNormalizer::denormalize --- components/serializer.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/serializer.rst b/components/serializer.rst index a48a5254a08..5acff0952fc 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -528,6 +528,10 @@ There are several types of normalizers available: :phpclass:`DateTime` and :phpclass:`DateTimeImmutable`) into strings. By default it uses the RFC3339_ format. +.. versionadded:: 3.2 + Support for specifying datetime format during denormalization was added to + ``DateTimeNormalizer`` in Symfony 3.2 + :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.