Middleware to display a 503 maintenance page
Middleware to display a
503 maintenance page.
This package is installable and autoloadable via Composer as middlewares/shutdown.
composer require middlewares/shutdown
$dispatcher = new Dispatcher([ (new Middlewares\Shutdown())->retryAfter(60 * 5) ]); $response = $dispatcher->dispatch(new ServerRequest());
The request handler used to generate the response. If it's not provided, the default will be used.
If known, the length of the downtime in seconds or the estimated date and time when the downtime will be complete. More info about why this
The MIT License (MIT). Please see LICENSE for more information.