Skip to content

Commit b4d9d7e

Browse files
committed
minor #8866 Fixed the internal references of the serializer docs (javiereguiluz)
This PR was merged into the 3.3 branch. Discussion ---------- Fixed the internal references of the serializer docs This fixes #7799. I've picked the 3.3 branch because it's the first branch where the Encoders section exists (in 2.7 and 2-8 we only have normalizers). Commits ------- 7bebc24 Fixed the internal references of the serializer docs
2 parents 999d56f + 7bebc24 commit b4d9d7e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/serializer.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ The Serializer Component
1111
In order to do so, the Serializer component follows the following
1212
simple schema.
1313

14-
.. _component-serializer-encoders:
15-
.. _component-serializer-normalizers:
16-
1714
.. image:: /_images/components/serializer/serializer_workflow.png
1815

1916
As you can see in the picture above, an array is used as a man in
2017
the middle. This way, Encoders will only deal with turning specific
2118
**formats** into **arrays** and vice versa. The same way, Normalizers
2219
will deal with turning specific **objects** into **arrays** and vice versa.
2320

24-
Serialization is a complex topic. This component may not cover all your use cases out of the box,
21+
Serialization is a complex topic. This component may not cover all your use cases out of the box,
2522
but it can be useful for developing tools to serialize and deserialize your objects.
2623

2724
Installation
@@ -543,6 +540,8 @@ When serializing, you can set a callback to format a specific object property::
543540
$serializer->serialize($person, 'json');
544541
// Output: {"name":"cordoval", "age": 34, "createdAt": "2014-03-22T09:43:12-0500"}
545542

543+
.. _component-serializer-normalizers:
544+
546545
Normalizers
547546
-----------
548547

@@ -602,6 +601,8 @@ There are several types of normalizers available:
602601
This normalizer converts :phpclass:`SplFileInfo` objects into a data URI
603602
string (``data:...``) such that files can be embedded into serialized data.
604603

604+
.. _component-serializer-encoders:
605+
605606
Encoders
606607
--------
607608

0 commit comments

Comments
 (0)