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

Commitd335005

Browse files
committed
[Serializer] Fix CS
1 parent0442752 commitd335005

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎components/serializer.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Converting Property Names when Serializing and Deserializing
170170
interface was introduced in Symfony 2.7.
171171

172172
Sometimes serialized attributes must be named differently than properties
173-
or getter /setter methods of PHP classes.
173+
or getter/setter methods of PHP classes.
174174

175175
The Serializer Component provides a handy way to translate or map PHP field
176176
names to serialized names: The Name Converter System.
@@ -183,13 +183,12 @@ Given you have the following object::
183183
public address;
184184
}
185185

186-
187186
And in the serialized form, all attributes must be prefixed by ``org_`` like
188187
the following::
189188

190189
{"org_name": "Acme Inc.", "org_address": "123 Main Street, Big City"}
191190

192-
A customName Converter can handle such cases::
191+
A customname converter can handle such cases::
193192

194193
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
195194

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp