File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ Typically, this is used to map URL routing parameters to their corresponding
87
87
named arguments; or pass the current request when the ``Request `` type-hint is
88
88
found::
89
89
90
+ use Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent;
91
+
90
92
public function onKernelControllerArguments(ControllerArgumentsEvent $event)
91
93
{
92
94
// ...
@@ -149,6 +151,8 @@ This event is dispatched after the controller or any ``kernel.view`` listener
149
151
returns a ``Response `` object. It's useful to modify or replace the response
150
152
before sending it back (e.g. add/modify HTTP headers, add cookies, etc.)::
151
153
154
+ use Symfony\Component\HttpKernel\Event\ResponseEvent;
155
+
152
156
public function onKernelResponse(ResponseEvent $event)
153
157
{
154
158
$response = $event->getResponse();
@@ -176,6 +180,8 @@ This event is dispatched after the ``kernel.response`` event. It's useful to res
176
180
the global state of the application (for example, the translator listener resets
177
181
the translator's locale to the one of the parent request)::
178
182
183
+ use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
184
+
179
185
public function onKernelFinishRequest(FinishRequestEvent $event)
180
186
{
181
187
if (null === $parentRequest = $this->requestStack->getParentRequest()) {
You can’t perform that action at this time.
0 commit comments