Skip to content

Commit 586f146

Browse files
ihmelsjaviereguiluz
authored andcommitted
Document save_options of XmlEncoder (symfony#48164)
1 parent ed65de7 commit 586f146

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/serializer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ always as a collection.
10931093
changed by adding the ``\XML_COMMENT_NODE`` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES``
10941094
key of the ``$defaultContext`` of the ``XmlEncoder`` constructor or
10951095
directly to the ``$context`` argument of the ``encode()`` method::
1096-
1096+
10971097
$xmlEncoder->encode($array, 'xml', [XmlEncoder::ENCODER_IGNORED_NODE_TYPES => [\XML_COMMENT_NODE]]);
10981098

10991099
The ``XmlEncoder`` Context Options
@@ -1124,6 +1124,7 @@ Option Description
11241124
``encoder_ignored_node_types`` Array of node types (`DOM XML_* constants`_) ``[]``
11251125
to be ignored while encoding
11261126
``load_options`` XML loading `options with libxml`_ ``\LIBXML_NONET | \LIBXML_NOBLANKS``
1127+
``save_options`` XML saving `options with libxml`_ ``0``
11271128
``remove_empty_tags`` If set to true, removes all empty tags in the ``false``
11281129
generated XML
11291130
============================== ================================================= ==========================

0 commit comments

Comments
 (0)