Skip to content

Commit

Permalink
Add description for View::setContext()
Browse files Browse the repository at this point in the history
  • Loading branch information
eatae authored Mar 13, 2023
1 parent 3b97786 commit a140067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Resources/doc/2-the-view-layer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ the important ones for configuring the view:
* ``setHeaders(array $headers)`` - Set multiple headers to put on the HTTP response.
* ``setStatusCode($code)`` - Set the HTTP status code.
* ``getContext()`` - The serialization context in use.
* ``setContext($context)`` - Set the serialization context.
* ``setFormat($format)`` - The format the response is supposed to be rendered in.
Can be autodetected using HTTP semantics.
* ``setLocation($location)`` - The location to redirect to with a response.
Expand Down

0 comments on commit a140067

Please sign in to comment.