Skip to content

Commit 07d13e7

Browse files
committed
Applied comments
1 parent 629c8ac commit 07d13e7

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

components/serializer.rst

+15-17
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ which Encoders and Normalizer are going to be available::
5353
There are several normalizers available, e.g. the
5454
:class:`Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer` or the
5555
: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.
5757
All the examples shown below use the GetSetMethodNormalizer.
5858

5959
Serializing an Object
@@ -247,26 +247,24 @@ When serializing, you can set a callback to format a specific object property::
247247
Normalizers
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 serialized 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

271269
Handling Circular References
272270
----------------------------

0 commit comments

Comments
 (0)