Skip to content

Commit 16cad92

Browse files
committed
Minor reword
1 parent b384cc2 commit 16cad92

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/serializer.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,10 @@ There are several types of normalizers available:
510510
directly and through getters, setters, hassers, adders and removers. It supports
511511
calling the constructor during the denormalization process.
512512

513-
Objects are normalized to a map of property names (method name stripped of
514-
the "get"/"set"/"has"/"remove" prefix) to property
515-
values.
513+
Objects are normalized to a map of property names and values (names are
514+
generated removing the ``get``, ``set``, ``has`` or ``remove`` prefix from
515+
the method name and lowercasing the first letter; e.g. ``getFirstName()`` ->
516+
``firstName``).
516517

517518
The ``ObjectNormalizer`` is the most powerful normalizer. It is configured by
518519
default when using the Symfony Standard Edition with the serializer enabled.
@@ -522,8 +523,9 @@ There are several types of normalizers available:
522523
(public methods starting with "get"). It will denormalize data by calling
523524
the constructor and the "setters" (public methods starting with "set").
524525

525-
Objects are normalized to a map of property names (method name stripped of
526-
the "get" prefix) to property values.
526+
Objects are normalized to a map of property names and values (names are
527+
generated removing the ``get`` prefix from the method name and lowercasing
528+
the first letter; e.g. ``getFirstName()`` -> ``firstName``).
527529

528530
:class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`
529531
This normalizer directly reads and writes public properties as well as

0 commit comments

Comments
 (0)