File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -788,6 +788,14 @@ response types. Some of these are mentioned below. To learn more about the
788788``Request `` and ``Response `` (and different ``Response `` classes), see the
789789:ref: `HttpFoundation component documentation <component-http-foundation-request >`.
790790
791+ .. note ::
792+
793+ Technically, a controller can return a value other than a ``Response ``.
794+ However, your application is responsible for transforming that value into a
795+ ``Response `` object. This is handled using :doc: `events </event_dispatcher >`
796+ (specifically the :ref: `kernel.view event <component-http-kernel-kernel-view >`),
797+ an advanced feature you'll learn about later.
798+
791799Accessing Configuration Values
792800~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
793801
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ allows you to return a list of extensions to register::
214214 {
215215 $validator = Validation::createValidator();
216216
217- // or if you also need to read constraints from annotations
217+ // or if you also need to read constraints from attributes
218218 $validator = Validation::createValidatorBuilder()
219219 ->enableAttributeMapping()
220220 ->getValidator();
You can’t perform that action at this time.
0 commit comments