From 1ebd63d3e93d283385ed039d68c9ed0634e330bc Mon Sep 17 00:00:00 2001 From: Liviu Balan Date: Sun, 1 Apr 2018 10:39:56 +0300 Subject: [PATCH 1/2] Fix "DateTimeInterface" URL Change generated URL "http://api.symfony.com/3.4/DateTimeInterface.html" to "http://php.net/manual/en/class.datetimeinterface.php" --- serializer.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serializer.rst b/serializer.rst index 68a2e7f9616..6993e508a25 100644 --- a/serializer.rst +++ b/serializer.rst @@ -99,7 +99,7 @@ As well as the following normalizers: * :class:`Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer` to handle typical data objects * :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer` for - objects implementing the :class:`DateTimeInterface` interface + objects implementing the `DateTimeInterface`_ interface * :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` to transform :class:`SplFileInfo` objects in `Data URIs`_ * :class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer` @@ -332,4 +332,5 @@ take a look at how this bundle works. .. _`ApiPlatform`: https://github.com/api-platform/core .. _`JSON-LD`: http://json-ld.org .. _`Hydra Core Vocabulary`: http://hydra-cg.com +.. _`DateTimeInterface`: http://php.net/manual/en/class.datetimeinterface.php .. _`Data URIs`: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs From b99957b6b34626c8344eba72f168e562809b6778 Mon Sep 17 00:00:00 2001 From: Liviu Balan Date: Tue, 3 Apr 2018 17:23:42 +0300 Subject: [PATCH 2/2] Changes after code review --- serializer.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/serializer.rst b/serializer.rst index 6993e508a25..a4a96c75f11 100644 --- a/serializer.rst +++ b/serializer.rst @@ -99,7 +99,7 @@ As well as the following normalizers: * :class:`Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer` to handle typical data objects * :class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer` for - objects implementing the `DateTimeInterface`_ interface + objects implementing the :phpclass:`DateTimeInterface` interface * :class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer` to transform :class:`SplFileInfo` objects in `Data URIs`_ * :class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer` @@ -332,5 +332,4 @@ take a look at how this bundle works. .. _`ApiPlatform`: https://github.com/api-platform/core .. _`JSON-LD`: http://json-ld.org .. _`Hydra Core Vocabulary`: http://hydra-cg.com -.. _`DateTimeInterface`: http://php.net/manual/en/class.datetimeinterface.php .. _`Data URIs`: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs