@@ -11,17 +11,14 @@ The Serializer Component
1111In order to do so, the Serializer component follows the following
1212simple schema.
1313
14- .. _component-serializer-encoders :
15- .. _component-serializer-normalizers :
16-
1714.. image :: /_images/components/serializer/serializer_workflow.png
1815
1916As you can see in the picture above, an array is used as a man in
2017the middle. This way, Encoders will only deal with turning specific
2118**formats ** into **arrays ** and vice versa. The same way, Normalizers
2219will 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,
2522but it can be useful for developing tools to serialize and deserialize your objects.
2623
2724Installation
@@ -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+
506505Normalizers
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+
565566Encoders
566567--------
567568
0 commit comments