File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,11 @@ needs three parameters:
169
169
Support for the ``allow_extra_attributes `` key in the context was introduced
170
170
in Symfony 3.3.
171
171
172
- By default, additional attributes that are not mapped to the denormalized
173
- object will be ignored by the Serializer component. Include a
174
- `` ClassMetadataFactory `` when constructing the normalizer and set the
175
- ``allow_extra_attributes `` key of the deserialization context to ``false `` to
176
- let the serializer throw an exception when additional attributes are passed ::
172
+ By default, additional attributes that are not mapped to the denormalized object
173
+ will be ignored by the Serializer component. If you prefer to throw an exception
174
+ when this happens, set the `` allow_extra_attributes `` context option to
175
+ ``false `` and provide an object that implements ``ClassMetadataFactoryInterface`
176
+ when constructing the normalizer ::
177
177
178
178
$data = <<<EOF
179
179
<person>
You can’t perform that action at this time.
0 commit comments