Skip to content

Commit 7a74476

Browse files
committed
minor #9855 Mention the new ConstraintViolationListNormalizer (javiereguiluz)
This PR was squashed before being merged into the 4.1 branch (closes #9855). Discussion ---------- Mention the new ConstraintViolationListNormalizer This fixes #9480. Commits ------- 0d00129 Mention the new ConstraintViolationListNormalizer
2 parents c6a99df + 0d00129 commit 7a74476

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/serializer.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,14 @@ There are several types of normalizers available:
612612
This normalizer converts :phpclass:`DateInterval` objects into strings.
613613
By default it uses the ``P%yY%mM%dDT%hH%iM%sS`` format.
614614

615+
:class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer`
616+
This normalizer converts objects that implement
617+
:class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface`
618+
into a list of errors according to the `RFC 7807`_ standard.
619+
620+
.. versionadded:: 4.1
621+
The ``ConstraintViolationListNormalizer`` was introduced in Symfony 4.1.
622+
615623
.. _component-serializer-encoders:
616624

617625
Encoders
@@ -1255,3 +1263,4 @@ Learn more
12551263
.. _XML: https://www.w3.org/XML/
12561264
.. _YAML: http://yaml.org/
12571265
.. _CSV: https://tools.ietf.org/html/rfc4180
1266+
.. _`RFC 7807`: https://tools.ietf.org/html/rfc7807

0 commit comments

Comments
 (0)