@@ -53,7 +53,7 @@ which Encoders and Normalizer are going to be available::
53
53
There are several normalizers available, e.g. the
54
54
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer ` or the
55
55
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `.
56
- To read more about them, refer to the " Normalizers" section in this page.
56
+ To read more about them, refer to the ` Normalizers `_ section in this page.
57
57
All the examples shown below use the GetSetMethodNormalizer.
58
58
59
59
Serializing an Object
@@ -247,26 +247,24 @@ When serializing, you can set a callback to format a specific object property::
247
247
Normalizers
248
248
-----------
249
249
250
- There are several types of normalizers available::
250
+ There are several types of normalizers available:
251
251
252
- * The :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer `
252
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer `
253
+ This normalizer reads the content of the class by calling the "getters"
254
+ (public methods starting with "get"). It will denormalize data by calling
255
+ the constructor and the "setters" (public methods starting with "set").
253
256
254
- This normalizer reads the content of the class by calling the "getters" (public
255
- methods starting with "get"). It will denormalize data by calling the constructor
256
- and the "setters" (public methods starting with "set").
257
+ Objects are serialized to a map of property names (method name stripped of
258
+ the "get" prefix and converted to lower case) to property values.
257
259
258
- Objects are serialized to a map of property names (method name stripped of the "get"
259
- prefix and converted to lower case) to property values.
260
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `
261
+ This normalizer directly reads and writes public properties as well as
262
+ **private and protected ** properties. Objects are serialized to a map of
263
+ property names to property values.
260
264
261
- * The :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `
262
-
263
- .. versionadded :: 2.6
264
- The :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `
265
- class was introduced in Symfony 2.6.
266
-
267
- This normalizer directly reads and writes public properties as well as
268
- **private and protected ** properties. Objects are serialized to a map of
269
- property names to property values.
265
+ .. versionadded :: 2.6 The
266
+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `
267
+ class was introduced in Symfony 2.6.
270
268
271
269
Handling Circular References
272
270
----------------------------
0 commit comments