8000 [Serializer] Allow to access extra infos in name converters by dunglas · Pull Request #10317 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Serializer] Allow to access extra infos in name converters #10317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 11, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Minor reword
  • Loading branch information
javiereguiluz authored Sep 11, 2018
commit 71afdca6dca6f6557ffc840357fe6eaf1d5102d0
9 changes: 6 additions & 3 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,12 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`::

.. note::

Since Symfony 4.2, it is also possible to access to the current class name, format and
context by implementing the :class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface`
interface.
You can also implement
:class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface`
to access to the current class name, format and context.

.. versionadded:: 4.2
The ``AdvancedNameConverterInterface`` interface was introduced in Symfony 4.2.

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

Expand Down
0