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
8787named arguments; or pass the current request when the ``Request `` type-hint is
8888found::
8989
90+ use Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent;
91+
9092 public function onKernelControllerArguments(ControllerArgumentsEvent $event)
9193 {
9294 // ...
@@ -149,6 +151,8 @@ This event is dispatched after the controller or any ``kernel.view`` listener
149151returns a ``Response `` object. It's useful to modify or replace the response
150152before sending it back (e.g. add/modify HTTP headers, add cookies, etc.)::
151153
154+ use Symfony\Component\HttpKernel\Event\ResponseEvent;
155+
152156 public function onKernelResponse(ResponseEvent $event)
153157 {
154158 $response = $event->getResponse();
@@ -176,6 +180,8 @@ This event is dispatched after the ``kernel.response`` event. It's useful to res
176180the global state of the application (for example, the translator listener resets
177181the translator's locale to the one of the parent request)::
178182
183+ use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
184+
179185 public function onKernelFinishRequest(FinishRequestEvent $event)
180186 {
181187 if (null === $parentRequest = $this->requestStack->getParentRequest()) {
You can’t perform that action at this time.
0 commit comments