🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions serializer/custom_normalizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
}
}

.. deprecated:: 6.1

Injecting an ``ObjectNormalizer`` in your custom normalizer is deprecated
since Symfony 6.1. Implement the
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareInterface`
and use the
:class:`Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareTrait` instead
to inject the ``$normalizer`` property.

Registering it in your Application
----------------------------------

Expand Down