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

Commit31c56d9

Browse files
committed
minor#9630 [Serializer] example for processing XML comments when decoding (snoek09, javiereguiluz)
This PR was merged into the master branch.Discussion----------[Serializer] example for processing XML comments when decodingThisfixes#9483.Commits-------dc01b87 Reword8d99047 example for processing XML comments when decoding
2 parents8a83d17 +dc01b87 commit31c56d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎components/serializer.rst‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,15 @@ always as a collection.
704704
..versionadded::4.1
705705
The ``as_collection`` option was introduced in Symfony 4.1.
706706

707+
..tip::
708+
709+
XML comments are ignored by default when decoding contents, but this
710+
behavior can be changed with the optional ``$ignoredNodeTypes`` argument of
711+
the ``XmlEncoder`` class constructor.
712+
713+
..versionadded::4.1
714+
XML comments are ignored by default starting from Symfony 4.1.
715+
707716
The ``YamlEncoder``
708717
~~~~~~~~~~~~~~~~~~~
709718

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp