Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc011c0

Browse files
committed
Reword
1 parentb05c1cc commitbc011c0

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-
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::
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+
whenthis happens, setthe``allow_extra_attributes`` context option to
175+
``false``and provide an object that implements ``ClassMetadataFactoryInterface`
176+
whenconstructing the normalizer::
177177
178178
$data = <<<EOF
179179
<person>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp