@@ -51,10 +51,10 @@ which Encoders and Normalizer are going to be available::
5151 $serializer = new Serializer($normalizers, $encoders);
5252
5353There are several normalizers available, e.g. the
54- :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer ` or the
55- :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `.
56- To read more about them, refer to the " Normalizers" section in this page.
57- All the examples shown below use the GetSetMethodNormalizer.
54+ :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer ` or
55+ the :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ PropertyNormalizer `.
56+ To read more about them, refer to the ` Normalizers `_ section of this page. All
57+ the examples shown below use the `` GetSetMethodNormalizer `` .
5858
5959Serializing an Object
6060---------------------
@@ -247,26 +247,24 @@ When serializing, you can set a callback to format a specific object property::
247247Normalizers
248248-----------
249249
250- There are several types of normalizers available::
250+ There are several types of normalizers available:
251251
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").
253256
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.
257259
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 normalized to a map of
263+ property names to property values.
260264
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.
270268
271269Handling Circular References
272270----------------------------
0 commit comments