Maintenance
Activation
to set the application in a maintenance modus, remove the dot .
from the file /.maintenance
in the Base Path of your Application.
rename from...
/.maintenance
...to
/maintenance
Get Maintenance Status
/** @var boolean $bMaintenance */
$bMaintenance = \MVC\Application::isMaintenance();
- returns
true
if the file/maintenance
exists in Base Path - returns
false
if the file/maintenance
does not exist in Base Path
Events fired
mvc.application.maintenance