From a14006745b5f711c3ef57b788a65acdfd7ad5380 Mon Sep 17 00:00:00 2001 From: Anton Kochetkov Date: Mon, 13 Mar 2023 16:54:55 +0300 Subject: [PATCH] Add description for View::setContext() --- Resources/doc/2-the-view-layer.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Resources/doc/2-the-view-layer.rst b/Resources/doc/2-the-view-layer.rst index 17260a7b1..5d403fe56 100644 --- a/Resources/doc/2-the-view-layer.rst +++ b/Resources/doc/2-the-view-layer.rst @@ -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.