8000 minor #9630 [Serializer] example for processing XML comments when dec… · symfony/symfony-docs@31c56d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31c56d9

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 decoding This fixes #9483. Commits ------- dc01b87 Reword 8d99047 example for processing XML comments when decoding
2 parents 8a83d17 + dc01b87 commit 31c56d9

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)
0