File tree 1 file changed +8
-4
lines changed
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:
797
797
parent classes) by using `PHP reflection `_. It supports calling the constructor
798
798
during the denormalization process.
799
799
800
- .. versionadded :: 6.2
800
+ Objects are normalized to a map of property names to property values.
801
801
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 ``,
804
805
``PropertyNormalizer::NORMALIZE_PROTECTED `` or ``PropertyNormalizer::NORMALIZE_PRIVATE ``.
805
806
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.
807
811
808
812
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ JsonSerializableNormalizer `
809
813
This normalizer works with classes that implement :phpclass: `JsonSerializable `.
You can’t perform that action at this time.
0 commit comments