Skip to content

Commit c0e8d75

Browse files
committed
Reword
1 parent 87b1a79 commit c0e8d75

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

components/serializer.rst

+8-4
Original file line numberDiff line numberDiff line change
@@ -797,13 +797,17 @@ The Serializer component provides several built-in normalizers:
797797
parent classes) by using `PHP reflection`_. It supports calling the constructor
798798
during the denormalization process.
799799

800-
.. versionadded:: 6.2
800+
Objects are normalized to a map of property names to property values.
801801

802-
You can change normalization visibility by setting the serializer context option
803-
``PropertyNormalizer::NORMALIZE_VISIBILITY`` and combine ``PropertyNormalizer::NORMALIZE_PUBLIC``,
802+
If you prefer to only normalize certain properties (e.g. only public properties)
803+
set the ``PropertyNormalizer::NORMALIZE_VISIBILITY`` context option and
804+
combine the following values: ``PropertyNormalizer::NORMALIZE_PUBLIC``,
804805
``PropertyNormalizer::NORMALIZE_PROTECTED`` or ``PropertyNormalizer::NORMALIZE_PRIVATE``.
805806

806-
Objects are normalized to a map of property names to property values.
807+
.. versionadded:: 6.2
808+
809+
The ``PropertyNormalizer::NORMALIZE_VISIBILITY`` context option and its
810+
values were introduced in Symfony 6.2.
807811

808812
:class:`Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer`
809813
This normalizer works with classes that implement :phpclass:`JsonSerializable`.

0 commit comments

Comments
 (0)