We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb05c1cc commitbc011c0Copy full SHA for bc011c0
components/serializer.rst
@@ -169,11 +169,11 @@ needs three parameters:
169
Support for the ``allow_extra_attributes`` key in the context was introduced
170
in Symfony 3.3.
171
172
-By default, additional attributes that are not mapped to the denormalized
173
-objectwill be ignored by the Serializer component.Include a
174
-``ClassMetadataFactory``whenconstructingthenormalizer and set the
175
-``allow_extra_attributes``key of the deserialization context to ``false`` to
176
-let the serializer throw an exceptionwhenadditional attributes are passed::
+By default, additional attributes that are not mapped to the denormalized object
+will be ignored by the Serializer component.If you prefer to throw an exception
+whenthis happens, setthe``allow_extra_attributes`` context option to
+``false``and provide an object that implements ``ClassMetadataFactoryInterface`
+whenconstructing the normalizer::
177
178
$data = <<<EOF
179
<person>