Maintenance final class
Minn\Front\Maintenance · public/minn/src/Minn/Front/Maintenance.php · 28 lines
Maintenance mode, as hosting tools and updaters switch it on: a .maintenance file in the webroot whose $upgrading is less than ten minutes old. While it holds, every request gets the site's own maintenance.php (which prints its page and stops) or the 503 page; an older file is ignored.
Constants and properties
| private | WINDOW = 600 |
Public
| static | answer(string $abspath, string $contentDir, int $now): ?Minn\Http\Response# | The answer while maintenance holds, or null when the site is open. |
Nothing matches.