File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -181,15 +181,15 @@ method on the normalizer definition::
181
181
As a final result, the deserializer uses the ``first_name `` attribute as if
182
182
it were ``firstName `` and uses the ``getFirstName `` and ``setFirstName `` methods.
183
183
184
- Using Callbacks to Serialize Properties With Object Instances
184
+ Using Callbacks to Serialize Properties with Object Instances
185
185
-------------------------------------------------------------
186
186
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::
188
188
189
+ use Acme\Person;
189
190
use Symfony\Component\Serializer\Encoder\JsonEncoder;
190
191
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
191
192
use Symfony\Component\Serializer\Serializer;
192
- use Acme\P erson;
193
193
194
194
$encoder = new JsonEncoder();
195
195
$normalizer = new GetSetMethodNormalizer();
You can’t perform that action at this time.
0 commit comments