Skip to content

Commit 7bebc24

Browse files
committed
Fixed the internal references of the serializer docs
1 parent 663f818 commit 7bebc24

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
@@ -503,6 +500,8 @@ When serializing, you can set a callback to format a specific object property::
503500
$serializer->serialize($person, 'json');
504501
// Output: {"name":"cordoval", "age": 34, "createdAt": "2014-03-22T09:43:12-0500"}
505502

503+
.. _component-serializer-normalizers:
504+
506505
Normalizers
507506
-----------
508507

@@ -562,6 +561,8 @@ There are several types of normalizers available:
562561
This normalizer converts :phpclass:`SplFileInfo` objects into a data URI
563562
string (``data:...``) such that files can be embedded into serialized data.
564563

564+
.. _component-serializer-encoders:
565+
565566
Encoders
566567
--------
567568

0 commit comments

Comments
 (0)