Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit10b2fa3

Browse files
committed
Minor language tweaks
1 parentf99663a commit10b2fa3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎serializer/custom_encoders.rst‎

Lines changed: 7 additions & 7 deletions
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 anotherlanguage not supported.
13+
to use anotherstructure 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 thatmay use the
19+
create your own encoder thatuses 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 itas `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 itwith ``serializer.encoder``
56+
to inject your custom encoder into the Serializer.
5757

5858
..configuration-block::
5959

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp