Skip to content

Commit b0021ca

Browse files
[EventListener] Symfony5の対応を行った。
1 parent 5081c6e commit b0021ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/EventListener/ProxyUrlRewriteListener.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
use PHPMentors\ProxyURLRewriteBundle\ProxyUrl\ProxyUrlMatcher;
1616
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
17+
use Symfony\Component\HttpKernel\Event\RequestEvent;
1718
use Symfony\Component\HttpKernel\HttpKernelInterface;
1819
use Symfony\Component\Routing\RouterInterface;
1920

@@ -50,9 +51,9 @@ public function setRouter(RouterInterface $router)
5051
}
5152

5253
/**
53-
* @param GetResponseEvent $event
54+
* @param RequestEvent $event
5455
*/
55-
public function onKernelRequest(GetResponseEvent $event)
56+
public function onKernelRequest(RequestEvent $event)
5657
{
5758
if ($event->getRequestType() == HttpKernelInterface::MASTER_REQUEST) {
5859
$matchedProxyUrl = $this->proxyUrlMatcher->match($this->router->getContext()->getPathInfo());

0 commit comments

Comments
 (0)