We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5081c6e commit b0021caCopy full SHA for b0021ca
src/EventListener/ProxyUrlRewriteListener.php
@@ -14,6 +14,7 @@
14
15
use PHPMentors\ProxyURLRewriteBundle\ProxyUrl\ProxyUrlMatcher;
16
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
17
+use Symfony\Component\HttpKernel\Event\RequestEvent;
18
use Symfony\Component\HttpKernel\HttpKernelInterface;
19
use Symfony\Component\Routing\RouterInterface;
20
@@ -50,9 +51,9 @@ public function setRouter(RouterInterface $router)
50
51
}
52
53
/**
- * @param GetResponseEvent $event
54
+ * @param RequestEvent $event
55
*/
- public function onKernelRequest(GetResponseEvent $event)
56
+ public function onKernelRequest(RequestEvent $event)
57
{
58
if ($event->getRequestType() == HttpKernelInterface::MASTER_REQUEST) {
59
$matchedProxyUrl = $this->proxyUrlMatcher->match($this->router->getContext()->getPathInfo());
0 commit comments