File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ data.
232
232
Context
233
233
-------
234
234
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 >`.
236
236
237
237
.. _component-serializer-attributes-groups :
238
238
@@ -1093,7 +1093,7 @@ always as a collection.
1093
1093
changed by adding the ``\XML_COMMENT_NODE `` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES ``
1094
1094
key of the ``$defaultContext `` of the ``XmlEncoder `` constructor or
1095
1095
directly to the ``$context `` argument of the ``encode() `` method::
1096
-
1096
+
1097
1097
$xmlEncoder->encode($array, 'xml', [XmlEncoder::ENCODER_IGNORED_NODE_TYPES => [\XML_COMMENT_NODE]]);
1098
1098
1099
1099
The ``XmlEncoder `` Context Options
@@ -1192,7 +1192,7 @@ Option Description Defaul
1192
1192
Context Builders
1193
1193
----------------
1194
1194
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 >`,
1196
1196
you can use "context builders" to define the context using a fluent interface::
1197
1197
1198
1198
use Symfony\Component\Serializer\Context\Encoder\CsvEncoderContextBuilder;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ possible to set the priority of the tag in order to decide the matching order.
90
90
``DateTime `` or ``DateTimeImmutable `` classes to avoid excessive memory
91
91
usage and exposing internal details.
92
92
93
- .. _ serializer -context :
93
+ .. _ serializer_serializer -context :
94
94
95
95
Serializer Context
96
96
------------------
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ How to Create your Custom Context Builder
11
11
The :doc: `Serializer Component </components/serializer >` uses Normalizers
12
12
and Encoders to transform any data to any data-structure (e.g. JSON).
13
13
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
15
15
:ref: `context builders <component-serializer-context-builders >`.
16
16
17
17
Each built-in normalizer/encoder has its related context builder. However, you
You can’t perform that action at this time.
0 commit comments