diff --git a/serializer.rst b/serializer.rst index 4efdbf2dd45..cb83f3b6696 100644 --- a/serializer.rst +++ b/serializer.rst @@ -290,9 +290,9 @@ The serializer, and its normalizers and encoders, are configured through the *serializer context*. This context can be configured in multiple places: -* `Globally through the framework configuration `_ -* `While serializing/deserializing `_ -* `For a specific property `_ +* :ref:`Globally through the framework configuration ` +* :ref:`While serializing/deserializing ` +* :ref:`For a specific property ` You can use all three options at the same time. When the same setting is configured in multiple places, the latter in the list above will override @@ -363,6 +363,8 @@ instance to disallow extra fields while deserializing: ]; $serializer = new Serializer($normalizers, $encoders); +.. _serializer-context-while-serializing-deserializing: + Pass Context while Serializing/Deserializing ............................................ @@ -1482,7 +1484,7 @@ Debugging the Serializer .. versionadded:: 6.3 - The debug:serializer`` command was introduced in Symfony 6.3. + The ``debug:serializer`` command was introduced in Symfony 6.3. Use the ``debug:serializer`` command to dump the serializer metadata of a given class: @@ -1969,7 +1971,7 @@ these type names to the real PHP class name when deserializing: With the discriminator map configured, the serializer can now pick the -correct class for properties typed as `InvoiceItemInterface`:: +correct class for properties typed as ``InvoiceItemInterface``:: .. configuration-block::