Skip to content

Commit

Permalink
Merge pull request #2385 from eatae/patch-1
Browse files Browse the repository at this point in the history
Add description for View::setContext()
  • Loading branch information
goetas authored Sep 26, 2023
2 parents 3530bf0 + a140067 commit abaa592
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 abaa592

Please sign in to comment.