@@ -70,27 +70,19 @@ Encoders supporting the following formats are enabled:
7070
7171As well as the following normalizers:
7272
73- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ObjectNormalizer ` to
74- handle typical data objects
75- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateTimeNormalizer ` for
76- objects implementing the:phpclass: `DateTimeInterface ` interface
77- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateTimeZoneNormalizer ` for
78- :phpclass: `DateTimeZone ` objects
73+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ObjectNormalizer `
74+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateTimeNormalizer `
75+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateTimeZoneNormalizer `
7976*:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateIntervalNormalizer `
80- for:phpclass: `DateInterval ` objects
81- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer ` to
82- transform:phpclass: `SplFileInfo ` objects in `Data URIs `_
83- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer ` for
84- objects implementing the:class: `Symfony\\ Component\\ Form\\ FormInterface ` to
85- normalize form errors.
77+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ FormErrorNormalizer `
78+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer `
8679*:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ JsonSerializableNormalizer `
87- to deal with objects implementing the:phpclass: `JsonSerializable ` interface
88- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer ` to
89- denormalize arrays of objects using a notation like ``MyObject[] `` (note the ``[] `` suffix)
90- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ConstraintViolationListNormalizer ` for objects implementing the:class: `Symfony\\ Component\\ Validator\\ ConstraintViolationListInterface ` interface
91- *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ProblemNormalizer ` for:class: `Symfony\\ Component\\ ErrorHandler\\ Exception\\ FlattenException ` objects
80+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer `
81+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ConstraintViolationListNormalizer `
82+ *:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ProblemNormalizer `
9283
93- Custom normalizers and/or encoders can also be loaded by tagging them as
84+ Other:ref: `built-in normalizers <component-serializer-normalizers >` and
85+ custom normalizers and/or encoders can also be loaded by tagging them as
9486:ref: `serializer.normalizer <reference-dic-tags-serializer-normalizer >` and
9587:ref: `serializer.encoder <reference-dic-tags-serializer-encoder >`. It's also
9688possible to set the priority of the tag in order to decide the matching order.
@@ -101,7 +93,7 @@ possible to set the priority of the tag in order to decide the matching order.
10193 ``DateTime `` or ``DateTimeImmutable `` classes to avoid excessive memory
10294 usage and exposing internal details.
10395
104- Here is an example on how to load the
96+ Here is an example on how to load the built-in
10597:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer `, a
10698faster alternative to the `ObjectNormalizer ` when data objects always use
10799getters (``getXxx() ``), issers (``isXxx() ``) or hassers (``hasXxx() ``) to read
@@ -301,4 +293,3 @@ take a look at how this bundle works.
301293.. _`GraphQL` :https://graphql.org
302294.. _`JSON:API` :https://jsonapi.org
303295.. _`HAL` :http://stateless.co/hal_specification.html
304- .. _`Data URIs` :https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs