Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ea5c1c

Browse filesBrowse files
committed
[Serializer] Add class/format/context to NameConverterInterface
Fix #19683
1 parent f7225d9 commit 9ea5c1c
Copy full SHA for 9ea5c1c

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎components/serializer.rst

Copy file name to clipboardExpand all lines: components/serializer.rst
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,10 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`::
589589
:class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface`
590590
to access the current class name, format and context.
591591

592+
.. versionadded:: 7.1
593+
594+
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.
595+
592596
.. _using-camelized-method-names-for-underscored-attributes:
593597

594598
CamelCase to snake_case

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.