File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 `.
You can’t perform that action at this time.
0 commit comments