Skip to content

Commit bc011c0

Browse files
committed
Reword
1 parent b05c1cc commit bc011c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/serializer.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)