File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 17
17
use Symfony \Component \Console \Event \ConsoleErrorEvent ;
18
18
use Symfony \Component \Console \Style \SymfonyStyle ;
19
19
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
20
- use Symfony \Component \HttpKernel \Event \GetResponseForExceptionEvent ;
20
+ use Symfony \Component \HttpKernel \Event \ExceptionEvent ;
21
21
use Symfony \Component \HttpKernel \KernelEvents ;
22
22
23
23
/**
@@ -73,7 +73,7 @@ public function handleConsoleError(ConsoleErrorEvent $event): void
73
73
* This method checks if the triggered exception is related to the database
74
74
* and then, it checks if the required 'sqlite3' PHP extension is enabled.
75
75
*/
76
- public function handleKernelException (GetResponseForExceptionEvent $ event ): void
76
+ public function handleKernelException (ExceptionEvent $ event ): void
77
77
{
78
78
$ exception = $ event ->getException ();
79
79
// Since any exception thrown during a Twig template rendering is wrapped
Original file line number Diff line number Diff line change 15
15
use App \Events \CommentCreatedEvent ;
16
16
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
17
17
use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
18
- use Symfony \Component \Translation \TranslatorInterface ;
18
+ use Symfony \Contracts \Translation \TranslatorInterface ;
19
19
20
20
/**
21
21
* Notifies post's author about new comments.
Original file line number Diff line number Diff line change 13
13
14
14
use App \Twig \SourceCodeExtension ;
15
15
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
16
- use Symfony \Component \HttpKernel \Event \FilterControllerEvent ;
16
+ use Symfony \Component \HttpKernel \Event \ControllerEvent ;
17
17
use Symfony \Component \HttpKernel \KernelEvents ;
18
18
19
19
/**
@@ -39,7 +39,7 @@ public static function getSubscribedEvents(): array
39
39
];
40
40
}
41
41
42
- public function registerCurrentController (FilterControllerEvent $ event ): void
42
+ public function registerCurrentController (ControllerEvent $ event ): void
43
43
{
44
44
// this check is needed because in Symfony a request can perform any
45
45
// number of sub-requests. See
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
15
15
use Symfony \Component \HttpFoundation \RedirectResponse ;
16
- use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
16
+ use Symfony \Component \HttpKernel \Event \RequestEvent ;
17
17
use Symfony \Component \HttpKernel \KernelEvents ;
18
18
use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
19
19
@@ -60,7 +60,7 @@ public static function getSubscribedEvents(): array
60
60
];
61
61
}
62
62
63
- public function onKernelRequest (GetResponseEvent $ event ): void
63
+ public function onKernelRequest (RequestEvent $ event ): void
64
64
{
65
65
$ request = $ event ->getRequest ();
66
66
You can’t perform that action at this time.
0 commit comments