@@ -4,7 +4,7 @@ Symfony Framework Events
44Kernel Events
55-------------
66
7- Each event thrown by the Kernel is a subclass of
7+ Each event dispatched by the kernel is a subclass of
88:class: `Symfony\\ Component\\ HttpKernel\\ Event\\ KernelEvent `. This means that
99each event has access to the following information:
1010
@@ -20,10 +20,10 @@ each event has access to the following information:
2020
2121.. _kernel-core-request :
2222
23- ``kernel.request `` Event
24- ~~~~~~~~~~~~~~~~~~~~~~~~
23+ ``kernel.request ``
24+ ~~~~~~~~~~~~~~~~~~
2525
26- *Event Class *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseEvent `
26+ ** Event Class * *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseEvent `
2727
2828The goal of this event is to either return a ``Response `` object immediately
2929or setup variables so that a Controller can be called after the event. Any
@@ -41,10 +41,10 @@ object to match the ``Request`` and determine the Controller name (stored in the
4141
4242 Read more on the :ref: `kernel.request event <component-http-kernel-kernel-request >`.
4343
44- ``kernel.controller `` Event
45- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
44+ ``kernel.controller ``
45+ ~~~~~~~~~~~~~~~~~~~~~
4646
47- *Event Class *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterControllerEvent `
47+ ** Event Class * *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterControllerEvent `
4848
4949This event is not used by the FrameworkBundle, but can be an entry point used
5050to modify the controller that should be executed::
@@ -64,10 +64,10 @@ to modify the controller that should be executed::
6464
6565 Read more on the :ref: `kernel.controller event <component-http-kernel-kernel-controller >`.
6666
67- ``kernel.view `` Event
68- ~~~~~~~~~~~~~~~~~~~~~
67+ ``kernel.view ``
68+ ~~~~~~~~~~~~~~~
6969
70- *Event Class *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseForControllerResultEvent `
70+ ** Event Class * *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseForControllerResultEvent `
7171
7272This event is not used by the FrameworkBundle, but it can be used to implement
7373a view sub-system. This event is called *only * if the Controller does *not *
@@ -85,7 +85,7 @@ method::
8585 $val = $event->getControllerResult();
8686 $response = new Response();
8787
88- // ... some how customize the Response from the return value
88+ // ... somehow customize the Response from the return value
8989
9090 $event->setResponse($response);
9191 }
@@ -94,10 +94,10 @@ method::
9494
9595 Read more on the :ref: `kernel.view event <component-http-kernel-kernel-view >`.
9696
97- ``kernel.response `` Event
98- ~~~~~~~~~~~~~~~~~~~~~~~~~
97+ ``kernel.response ``
98+ ~~~~~~~~~~~~~~~~~~~
9999
100- *Event Class *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterResponseEvent `
100+ ** Event Class * *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterResponseEvent `
101101
102102The purpose of this event is to allow other systems to modify or replace the
103103``Response `` object after its creation::
@@ -128,10 +128,10 @@ The FrameworkBundle registers several listeners:
128128
129129 Read more on the :ref: `kernel.response event <component-http-kernel-kernel-response >`.
130130
131- ``kernel.terminate `` Event
132- ~~~~~~~~~~~~~~~~~~~~~~~~~~
131+ ``kernel.terminate ``
132+ ~~~~~~~~~~~~~~~~~~~~
133133
134- *Event Class *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ PostResponseEvent `
134+ ** Event Class * *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ PostResponseEvent `
135135
136136The purpose of this event is to perform "heavier" tasks after the response
137137was already served to the client.
@@ -142,10 +142,10 @@ was already served to the client.
142142
143143.. _kernel-kernel.exception :
144144
145- ``kernel.exception `` Event
146- ~~~~~~~~~~~~~~~~~~~~~~~~~~
145+ ``kernel.exception ``
146+ ~~~~~~~~~~~~~~~~~~~~
147147
148- *Event Class *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseForExceptionEvent `
148+ ** Event Class * *: :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseForExceptionEvent `
149149
150150The FrameworkBundle registers an
151151:class: `Symfony\\ Component\\ HttpKernel\\ EventListener\\ ExceptionListener ` that
0 commit comments