Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0186e76

Browse files
committed
[Serializer] Add missing options context
1 parent 527c6ea commit 0186e76

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

components/serializer.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,9 +1247,24 @@ These are the options available:
12471247
``xml_standalone``
12481248
Adds standalone attribute in the generated XML (default: ``true``).
12491249

1250+
``xml_type_cast_attributes``
1251+
This provides the ability to forgo the attribute type casting (default: ``true``).
1252+
12501253
``xml_root_node_name``
12511254
Sets the root node name (default: ``response``).
12521255

1256+
``as_collection``
1257+
Always returns results as a collection, even if only one line is decoded.
1258+
1259+
``decoder_ignored_node_types``
1260+
Sets nodes to be ignored in the decode (default: ``[\XML_PI_NODE, \XML_COMMENT_NODE]``).
1261+
1262+
``encoder_ignored_node_types``
1263+
Sets nodes to be ignored in the encode (default: ``[]``).
1264+
1265+
``load_options``
1266+
XML loading `options with libxml`_ (default: ``\LIBXML_NONET | \LIBXML_NOBLANKS``).
1267+
12531268
``remove_empty_tags``
12541269
If set to true, removes all empty tags in the generated XML (default: ``false``).
12551270

@@ -1553,6 +1568,7 @@ Learn more
15531568
.. _YAML: https://yaml.org/
15541569
.. _CSV: https://tools.ietf.org/html/rfc4180
15551570
.. _`RFC 7807`: https://tools.ietf.org/html/rfc7807
1571+
.. _`options with libxml`: https://www.php.net/manual/en/libxml.constants.php
15561572
.. _`UTF-8 BOM`: https://en.wikipedia.org/wiki/Byte_order_mark
15571573
.. _`Value Objects`: https://en.wikipedia.org/wiki/Value_object
15581574
.. _`API Platform`: https://api-platform.com

0 commit comments

Comments
 (0)