We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3530bf0 + a140067 commit abaa592Copy full SHA for abaa592
Resources/doc/2-the-view-layer.rst
@@ -79,6 +79,7 @@ the important ones for configuring the view:
79
* ``setHeaders(array $headers)`` - Set multiple headers to put on the HTTP response.
80
* ``setStatusCode($code)`` - Set the HTTP status code.
81
* ``getContext()`` - The serialization context in use.
82
+* ``setContext($context)`` - Set the serialization context.
83
* ``setFormat($format)`` - The format the response is supposed to be rendered in.
84
Can be autodetected using HTTP semantics.
85
* ``setLocation($location)`` - The location to redirect to with a response.
0 commit comments