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

Commita06ad9a

Browse files
cordovalweaverryan
authored andcommitted
add comma madness and lowercasing W
1 parent608fead commita06ad9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎components/serializer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ method on the normalizer definition::
181181
As a final result, the deserializer uses the ``first_name`` attribute as if
182182
it were ``firstName`` and uses the ``getFirstName`` and ``setFirstName`` methods.
183183

184-
Using Callbacks to Serialize PropertiesWith Object Instances
184+
Using Callbacks to Serialize Propertieswith Object Instances
185185
-------------------------------------------------------------
186186

187-
When serializing you can set a callback to format a specific object property.
187+
When serializing, you can set a callback to format a specific object property::
188188

189+
use Acme\Person;
189190
use Symfony\Component\Serializer\Encoder\JsonEncoder;
190191
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
191192
use Symfony\Component\Serializer\Serializer;
192-
use Acme\Person;
193193

194194
$encoder = new JsonEncoder();
195195
$normalizer = new GetSetMethodNormalizer();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp