Skip to content

Commit d13943a

Browse files
committed
Add missing info about kernel.request event.
1 parent 25e1069 commit d13943a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

components/http_kernel/introduction.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ return a ``Response`` directly, or to add information to the ``Request``
167167
(e.g. setting the locale or setting some other information on the ``Request``
168168
attributes).
169169

170+
.. note::
171+
172+
When setting a response for the ``kernel.view`` event, the propagation
173+
is stopped, so the lower priority listeners on that event don't get called.
174+
170175
.. sidebar:: ``kernel.request`` in the Symfony Framework
171176

172177
The most important listener to ``kernel.request`` in the Symfony Framework

cookbook/service_container/event_listener.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ event is just one of the core kernel events::
5959

6060
.. note::
6161

62-
When setting a response for the ``kernel.view`` or ``kernel.exception``
63-
events, the propagation is stopped, so the lower priority listeners on
64-
that event don't get called.
62+
When setting a response for the ``kernel.request``, ``kernel.view`` and
63+
``kernel.exception`` events, the propagation is stopped, so the lower
64+
priority listeners on that event don't get called.
6565

6666
Now that the class is created, you just need to register it as a service and
6767
notify Symfony that it is a "listener" on the ``kernel.exception`` event by

0 commit comments

Comments
 (0)