From a84cf11fb56629b52ea12db7a2203fb699145316 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 30 May 2018 12:55:45 +0200 Subject: [PATCH 1/3] Mention the new ConstraintViolationListNormalizer --- components/serializer.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/serializer.rst b/components/serializer.rst index f13bb81bfdf..4f3b5a4ad8f 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -612,6 +612,14 @@ There are several types of normalizers available: This normalizer converts :phpclass:`DateInterval` objects into strings. By default it uses the ``P%yY%mM%dDT%hH%iM%sS`` format. +:class:`Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer` + This normalizer converts objects that implement + :class:`Symfony\Component\Validator\ConstraintViolationListInterface` into + a list of errors according to the `RFC 7807`_ standard. + + .. versionadded:: 4.1 + The ``ConstraintViolationListNormalizer`` was introduced in Symfony 4.1. + .. _component-serializer-encoders: Encoders @@ -1255,3 +1263,4 @@ Learn more .. _XML: https://www.w3.org/XML/ .. _YAML: http://yaml.org/ .. _CSV: https://tools.ietf.org/html/rfc4180 +.. _`RFC 7807``: https://tools.ietf.org/html/rfc7807 From 42a52a2615cbcd761932c1c7db55b3a6828a92d7 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 31 May 2018 09:16:49 +0200 Subject: [PATCH 2/3] Fixed a RST syntax issue --- components/serializer.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index 4f3b5a4ad8f..699567ba743 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -612,10 +612,10 @@ There are several types of normalizers available: This normalizer converts :phpclass:`DateInterval` objects into strings. By default it uses the ``P%yY%mM%dDT%hH%iM%sS`` format. -:class:`Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer` +:class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer` This normalizer converts objects that implement - :class:`Symfony\Component\Validator\ConstraintViolationListInterface` into - a list of errors according to the `RFC 7807`_ standard. + :class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface` + into a list of errors according to the `RFC 7807`_ standard. .. versionadded:: 4.1 The ``ConstraintViolationListNormalizer`` was introduced in Symfony 4.1. From c4f8fa0f0ddc60985d7b3dd81ecde112db7d46bf Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 31 May 2018 09:23:49 +0200 Subject: [PATCH 3/3] Fixed another RST issue --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index 699567ba743..45955109280 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -1263,4 +1263,4 @@ Learn more .. _XML: https://www.w3.org/XML/ .. _YAML: http://yaml.org/ .. _CSV: https://tools.ietf.org/html/rfc4180 -.. _`RFC 7807``: https://tools.ietf.org/html/rfc7807 +.. _`RFC 7807`: https://tools.ietf.org/html/rfc7807