diff --git a/composer.json b/composer.json index 7a1a7d0..34e09a6 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "symfony/dependency-injection": "^5.0 | ^6.0 | ^7.0", "symfony/deprecation-contracts": "^2.0|^3.0", "symfony/http-foundation": "^5.0 | ^6.0 | ^7.0", - "symfony/http-kernel": "^5.0 | ^6.0 | ^7.0" + "symfony/http-kernel": "^5.3 | ^6.0 | ^7.0" }, "require-dev": { diff --git a/tests/NotModified/EventListenerTest.php b/tests/NotModified/EventListenerTest.php index 8bc084d..2ee28ca 100644 --- a/tests/NotModified/EventListenerTest.php +++ b/tests/NotModified/EventListenerTest.php @@ -174,7 +174,7 @@ public function eventListenerDifferentiatesBetweenMultipleRequests(): void private function exerciseOnKernelController(array $callable): void { $this->callable = $callable; - $this->filterControllerEvent = new ControllerEvent($this->kernel, $this->callable, $this->request, HttpKernelInterface::MASTER_REQUEST); + $this->filterControllerEvent = new ControllerEvent($this->kernel, $this->callable, $this->request, HttpKernelInterface::MAIN_REQUEST); $this->eventListener->onKernelController($this->filterControllerEvent); } @@ -197,7 +197,7 @@ private function assertNotModifiedResponse(): void private function createFilterResponseEvent(Request $request, Response $response): ResponseEvent { - return new ResponseEvent($this->kernel, $request, HttpKernelInterface::MASTER_REQUEST, $response); + return new ResponseEvent($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $response); } }