Skip to content

Commit 10b2fa3

Browse files
committed
Minor language tweaks
1 parent f99663a commit 10b2fa3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

serializer/custom_encoders.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ How to Create your Custom Encoder
55
=================================
66

77
The :doc:`Serializer Component </components/serializer>` uses Normalizers
8-
to transform any data to an array that can be then converted in whatever
9-
data-structured language you want thanks to Encoders.
8+
to transform any data to an array. Then, by leveraging *Encoders*, that data can
9+
be convereted into any data-structure (e.g. JSON).
1010

1111
The Component provides several built-in encoders that are described
1212
:doc:`in their own section </serializer/encoders>` but you may want
13-
to use another language not supported.
13+
to use another structure that's not supported.
1414

1515
Creating a new encoder
1616
----------------------
1717

1818
Imagine you want to serialize and deserialize Yaml. For that you'll have to
19-
create your own encoder that may use the
19+
create your own encoder that uses the
2020
:doc:`Yaml Component </components/yaml>`::
2121

2222
namespace AppBundle\Encoder;
@@ -51,9 +51,9 @@ create your own encoder that may use the
5151
Registering it in your app
5252
--------------------------
5353

54-
If you use the Symfony Framework then you probably want to register this encoder
55-
as a service in your app. Then you only need to tag it as `serializer.encoder` and it will be
56-
injected in the Serializer.
54+
If you use the Symfony Framework. then you probably want to register this encoder
55+
as a service in your app. Then, you only need to tag it with ``serializer.encoder``
56+
to inject your custom encoder into the Serializer.
5757

5858
.. configuration-block::
5959

0 commit comments

Comments
 (0)