File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,16 @@ As well as the following normalizers:
103
103
handle typical data objects
104
104
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateTimeNormalizer ` for
105
105
objects implementing the :phpclass: `DateTimeInterface ` interface
106
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateIntervalNormalizer ` for :phpclass: `DateInterval ` objects
106
107
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer ` to
107
108
transform :phpclass: `SplFileInfo ` objects in `Data URIs `_
108
109
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ JsonSerializableNormalizer `
109
110
to deal with objects implementing the :phpclass: `JsonSerializable ` interface
110
111
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer ` to
111
112
denormalize arrays of objects using a format like `MyObject[] ` (note the `[] ` suffix)
112
113
114
+ .. _`Data URIs` : https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
115
+
113
116
Custom normalizers and/or encoders can also be loaded by tagging them as
114
117
:ref: `serializer.normalizer <reference-dic-tags-serializer-normalizer >` and
115
118
:ref: `serializer.encoder <reference-dic-tags-serializer-encoder >`. It's also
Original file line number Diff line number Diff line change @@ -26,12 +26,20 @@ Symfony includes the following normalizers but you can also
26
26
27
27
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ObjectNormalizer ` to
28
28
normalize PHP object using the :doc: `PropertyAccessor component </components/property_access >`;
29
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateTimeNormalizer ` for
30
+ objects implementing the :phpclass: `DateTimeInterface ` interface
31
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DateIntervalNormalizer ` for :phpclass: `DateInterval ` objects
32
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer ` to
33
+ transform :phpclass: `SplFileInfo ` objects in `Data URIs `_
29
34
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ CustomNormalizer ` to
30
35
normalize PHP object using an object that implements
31
36
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ NormalizableInterface `;
32
37
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer ` to
33
38
normalize PHP object using the getter and setter methods of the object;
34
39
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer ` to
35
40
normalize PHP object using `PHP reflection `_.
41
+ * :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ JsonSerializableNormalizer `
42
+ to deal with objects implementing the :phpclass: `JsonSerializable ` interface
36
43
44
+ .. _`Data URIs` : https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
37
45
.. _`PHP reflection` : https://php.net/manual/en/book.reflection.php
You can’t perform that action at this time.
0 commit comments