Skip to content

Navigation Menu

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

Appearance settings

Commit 31c56d9

Browse filesBrowse 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
Copy full SHA for 31c56d9

File tree

1 file changed

+9
-0
lines changed
Filter options

1 file changed

+9
-0
lines changed

‎components/serializer.rst

Copy file name to clipboardExpand all lines: components/serializer.rst
+9Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.