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 ca5e2e0

Browse filesBrowse files
committed
[Serializer] Allow to access extra infos in name converters
1 parent 8a88478 commit ca5e2e0
Copy full SHA for ca5e2e0

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎components/serializer.rst

Copy file name to clipboardExpand all lines: components/serializer.rst
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`::
481481
$companyCopy = $serializer->deserialize($json, Company::class, 'json');
482482
// Same data as $company
483483

484+
It is also possible to access to the current class name, format and context by implementing the
485+
:class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface` interface.
486+
484487
.. _using-camelized-method-names-for-underscored-attributes:
485488

486489
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.