@@ -447,7 +447,7 @@ and provides methods for getting and setting response headers. The header names
447447normalized. As a result, the name ``Content-Type `` is equivalent to
448448the name ``content-type `` or ``content_type ``.
449449
450- In Symfony, a controlleris required to return a ``Response `` object::
450+ In Symfony, a controllerusually returns a ``Response `` object::
451451
452452 use Symfony\Component\HttpFoundation\Response;
453453
@@ -463,6 +463,14 @@ response types. Some of these are mentioned below. To learn more about the
463463``Request `` and ``Response `` (and different ``Response `` classes), see the
464464:ref: `HttpFoundation component documentation <component-http-foundation-request >`.
465465
466+ ..note ::
467+
468+ When a controller returns a non-``Response `` object, a ``kernel.view ``
469+ listener is expected to transform it into a ``Response `` object;
470+ otherwise an exception is thrown.
471+
472+ See:ref: `kernel.view event <component-http-kernel-kernel-view >` for details on the ``kernel.view `` event.
473+
466474Accessing Configuration Values
467475~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
468476