Skip to content

Commit

Permalink
Fix Symfony 7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Mar 28, 2024
1 parent 1a2f233 commit c5ab1d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions tests/NotModified/EventListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
}

Expand Down

0 comments on commit c5ab1d0

Please sign in to comment.