Skip to content

Commit abaa592

Browse files
authored
Merge pull request #2385 from eatae/patch-1
Add description for View::setContext()
2 parents 3530bf0 + a140067 commit abaa592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Resources/doc/2-the-view-layer.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ the important ones for configuring the view:
7979
* ``setHeaders(array $headers)`` - Set multiple headers to put on the HTTP response.
8080
* ``setStatusCode($code)`` - Set the HTTP status code.
8181
* ``getContext()`` - The serialization context in use.
82+
* ``setContext($context)`` - Set the serialization context.
8283
* ``setFormat($format)`` - The format the response is supposed to be rendered in.
8384
Can be autodetected using HTTP semantics.
8485
* ``setLocation($location)`` - The location to redirect to with a response.

0 commit comments

Comments
 (0)