File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1717use Symfony \Component \Console \Event \ConsoleErrorEvent ;
1818use Symfony \Component \Console \Style \SymfonyStyle ;
1919use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
20- use Symfony \Component \HttpKernel \Event \GetResponseForExceptionEvent ;
20+ use Symfony \Component \HttpKernel \Event \ExceptionEvent ;
2121use Symfony \Component \HttpKernel \KernelEvents ;
2222
2323/**
@@ -73,7 +73,7 @@ public function handleConsoleError(ConsoleErrorEvent $event): void
7373 * This method checks if the triggered exception is related to the database
7474 * and then, it checks if the required 'sqlite3' PHP extension is enabled.
7575 */
76- public function handleKernelException (GetResponseForExceptionEvent $ event ): void
76+ public function handleKernelException (ExceptionEvent $ event ): void
7777 {
7878 $ exception = $ event ->getException ();
7979 // Since any exception thrown during a Twig template rendering is wrapped
Original file line number Diff line number Diff line change 1515use App \Events \CommentCreatedEvent ;
1616use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
1717use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
18- use Symfony \Component \Translation \TranslatorInterface ;
18+ use Symfony \Contracts \Translation \TranslatorInterface ;
1919
2020/**
2121 * Notifies post's author about new comments.
Original file line number Diff line number Diff line change 1313
1414use App \Twig \SourceCodeExtension ;
1515use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
16- use Symfony \Component \HttpKernel \Event \FilterControllerEvent ;
16+ use Symfony \Component \HttpKernel \Event \ControllerEvent ;
1717use Symfony \Component \HttpKernel \KernelEvents ;
1818
1919/**
@@ -39,7 +39,7 @@ public static function getSubscribedEvents(): array
3939 ];
4040 }
4141
42- public function registerCurrentController (FilterControllerEvent $ event ): void
42+ public function registerCurrentController (ControllerEvent $ event ): void
4343 {
4444 // this check is needed because in Symfony a request can perform any
4545 // number of sub-requests. See
Original file line number Diff line number Diff line change 1313
1414use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
1515use Symfony \Component \HttpFoundation \RedirectResponse ;
16- use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
16+ use Symfony \Component \HttpKernel \Event \RequestEvent ;
1717use Symfony \Component \HttpKernel \KernelEvents ;
1818use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
1919
@@ -60,7 +60,7 @@ public static function getSubscribedEvents(): array
6060 ];
6161 }
6262
63- public function onKernelRequest (GetResponseEvent $ event ): void
63+ public function onKernelRequest (RequestEvent $ event ): void
6464 {
6565 $ request = $ event ->getRequest ();
6666
You can’t perform that action at this time.
0 commit comments