Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca5e2e0

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/serializer.rst

Lines 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)