Skip to content

Commit ab95d44

Browse files
committed
feature #17418 Document save_options of XmlEncoder (ihmels)
This PR was merged into the 6.3 branch. Discussion ---------- Document `save_options` of `XmlEncoder` Document new option added in symfony/symfony#48164. Commits ------- 0df7bb1 Document `save_options` of `XmlEncoder` (symfony#48164)
2 parents 5322f64 + 0df7bb1 commit ab95d44

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)