Skip to content

Commit

Permalink
Merge pull request #6 from northernco/maintenance-updates
Browse files Browse the repository at this point in the history
Maintenance updates
  • Loading branch information
natewiebe13 committed Dec 22, 2022
2 parents 595f486 + 0cd6f26 commit 0563e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EventSubscriber/MaintenanceSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
public function onKernelRequest(RequestEvent $event): void
{
if ($this->filesystem->exists($this->flagPath)) {
$event->setResponse(new Response($this->twig->render('@NorthernMaintenanceMode/maintenance.html.twig'), 503, ['Retry-After' => $this->retryAfter]));
$event->setResponse(new Response($this->twig->render('@NorthernMaintenanceMode/maintenance.html.twig'), Response::HTTP_SERVICE_UNAVAILABLE, ['Retry-After' => $this->retryAfter]));
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Symfony bundle for enabling and disabling maintenance mode",
"type": "symfony-bundle",
"require": {
"php": ">=7.4",
"php": ">=8.0",
"symfony/config": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/framework-bundle": "^5.4|^6.0",
Expand Down

0 comments on commit 0563e33

Please sign in to comment.