Skip to content

Commit ed47f38

Browse files
authored
Add the context key documentation
1 parent 5bb7c53 commit ed47f38

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

serializer/encoders.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ The ``JsonEncoder``
3636
The ``JsonEncoder`` encodes to and decodes from JSON strings, based on the PHP
3737
:phpfunction:`json_encode` and :phpfunction:`json_decode` functions.
3838

39+
The ``CsvEncoder``
40+
~~~~~~~~~~~~~~~~~~~
41+
42+
The ``CsvEncoder`` encodes to and decodes from CSV.
43+
44+
You can pass the context key ``as_collection`` in order to have the results always as a collection.
45+
3946
The ``XmlEncoder``
4047
~~~~~~~~~~~~~~~~~~
4148

@@ -64,6 +71,8 @@ Be aware that this encoder will consider keys beginning with ``@`` as attributes
6471
// <foo bar="value" />
6572
// </response>
6673

74+
You can pass the context key ``as_collection`` in order to have the results always as a collection.
75+
6776
The ``YamlEncoder``
6877
~~~~~~~~~~~~~~~~~~~
6978

0 commit comments

Comments
 (0)