Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16cad92

Browse filesBrowse files
committed
Minor reword
1 parent b384cc2 commit 16cad92
Copy full SHA for 16cad92

File tree

Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed

‎components/serializer.rst

Copy file name to clipboardExpand all lines: components/serializer.rst
+7-5Lines changed: 7 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.