Skip to content

Commit fb40677

Browse files
committed
Rename context
1 parent 43325d0 commit fb40677

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/serializer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ data.
232232
Context
233233
-------
234234

235-
Many Serializer features can be configured :doc:`using a context </serializer#serializer-context>`.
235+
Many Serializer features can be configured :doc:`using a context </serializer#serializer_serializer-context>`.
236236

237237
.. _component-serializer-attributes-groups:
238238

@@ -1093,7 +1093,7 @@ always as a collection.
10931093
changed by adding the ``\XML_COMMENT_NODE`` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES``
10941094
key of the ``$defaultContext`` of the ``XmlEncoder`` constructor or
10951095
directly to the ``$context`` argument of the ``encode()`` method::
1096-
1096+
10971097
$xmlEncoder->encode($array, 'xml', [XmlEncoder::ENCODER_IGNORED_NODE_TYPES => [\XML_COMMENT_NODE]]);
10981098

10991099
The ``XmlEncoder`` Context Options
@@ -1192,7 +1192,7 @@ Option Description Defaul
11921192
Context Builders
11931193
----------------
11941194

1195-
Instead of passing plain PHP arrays to the :ref:`serialization context <serializer-context>`,
1195+
Instead of passing plain PHP arrays to the :ref:`serialization context <serializer_serializer-context>`,
11961196
you can use "context builders" to define the context using a fluent interface::
11971197

11981198
use Symfony\Component\Serializer\Context\Encoder\CsvEncoderContextBuilder;

serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ possible to set the priority of the tag in order to decide the matching order.
9090
``DateTime`` or ``DateTimeImmutable`` classes to avoid excessive memory
9191
usage and exposing internal details.
9292

93-
.. _serializer-context:
93+
.. _serializer_serializer-context:
9494

9595
Serializer Context
9696
------------------

serializer/custom_context_builders.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ How to Create your Custom Context Builder
1111
The :doc:`Serializer Component </components/serializer>` uses Normalizers
1212
and Encoders to transform any data to any data-structure (e.g. JSON).
1313
That serialization process can be configured thanks to a
14-
:ref:`serialization context <serializer-context>`, which can be built thanks to
14+
:ref:`serialization context <serializer_serializer-context>`, which can be built thanks to
1515
:ref:`context builders <component-serializer-context-builders>`.
1616

1717
Each built-in normalizer/encoder has its related context builder. However, you

0 commit comments

Comments
 (0)