Skip to content

Commit f7fd0e7

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Serializer] Custom normalizer deprecation
2 parents e7b722a + 0451bca commit f7fd0e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

serializer/custom_normalizer.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
5555
}
5656
}
5757

58+
.. deprecated:: 6.4
59+
60+
Injecting an ``ObjectNormalizer`` in your custom normalizer is deprecated
61+
since Symfony 6.4. Implement the
62+
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareInterface`
63+
and use the the
64+
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareTrait` instead
65+
to inject the ``$normalizer`` property.
66+
5867
Registering it in your Application
5968
----------------------------------
6069

0 commit comments

Comments
 (0)