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:
169169 Support for the ``allow_extra_attributes `` key in the context was introduced
170170 in Symfony 3.3.
171171
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 ::
177177
178178 $data = <<<EOF
179179 <person>
You can’t perform that action at this time.
0 commit comments