Skip to content

Commit f8b9c08

Browse files
committed
Switch event class (GetResponseEvent -> RequestEvent)
1 parent 5375bb0 commit f8b9c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Event/Subscriber/RequestContextForcerSubscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Devture\Bundle\WebCommandBundle\Event\Subscriber;
33

44
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
5-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
5+
use Symfony\Component\HttpKernel\Event\RequestEvent;
66
use Symfony\Component\HttpKernel\KernelEvents;
77
use Symfony\Component\Routing\RequestContext;
88

@@ -33,7 +33,7 @@ public function __construct(string $forcedUri, RequestContext $requestContext) {
3333
$this->requestContext = $requestContext;
3434
}
3535

36-
public function onKernelRequest(GetResponseEvent $event) {
36+
public function onKernelRequest(RequestEvent $event) {
3737
if ($this->forcedUri === '') {
3838
return;
3939
}

0 commit comments

Comments
 (0)