We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001f5dd commit 8d99047Copy full SHA for 8d99047
components/serializer.rst
@@ -704,6 +704,27 @@ always as a collection.
704
.. versionadded:: 4.1
705
The ``as_collection`` option was introduced in Symfony 4.1.
706
707
+.. tip::
708
+
709
+ Processing of XML comments can be controlled with the third constructor
710
+ argument:
711
712
+ .. code-block:: php
713
714
+ class XmlEncoder
715
+ {
716
+ public function __construct(
717
+ string $rootNodeName = 'response',
718
+ int $loadOptions = null,
719
+ array $ignoredNodeTypes = array(XML_PI_NODE, XML_COMMENT_NODE)
720
+ ) {
721
+ // ...
722
+ }
723
724
725
+.. versionadded:: 4.1
726
+ XML comments are removed by default since Symfony 4.1.
727
728
The ``YamlEncoder``
729
~~~~~~~~~~~~~~~~~~~
730
0 commit comments