Skip to content

Commit

Permalink
[Serializer] Add class/format/context to NameConverterInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
mttsch committed Apr 22, 2024
1 parent f7225d9 commit 9ea5c1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/serializer.rst
Expand Up @@ -589,6 +589,10 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`::
:class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface`
to access the current class name, format and context.

.. versionadded:: 7.1

Accessing the current class name, format and context via :method:`Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface::normalize` and :method:`Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface::denormalize` was introduced in Symfony 7.1.

.. _using-camelized-method-names-for-underscored-attributes:

CamelCase to snake_case
Expand Down

0 comments on commit 9ea5c1c

Please sign in to comment.