MaintenanceTrait
Maintenance trait
Tags
Table of Contents
Properties
- $bypassMaintenance : bool
- Bypass maintenance false
- $maintenanceAction : string
- Maintenance action
Methods
- bypassMaintenance() : bool
- Check the bypass maintenance check
- dispatchMaintenance() : void
- Dispatch the maintenance action
- getMaintenanceAction() : string
- Get the maintenance action
- setBypassMaintenance() : static
- Check the bypass maintenance check
- setMaintenanceAction() : static
- Set the maintenance action
Properties
$bypassMaintenance
Bypass maintenance false
protected
bool
$bypassMaintenance
= false
$maintenanceAction
Maintenance action
protected
string
$maintenanceAction
= 'maintenance'
Methods
bypassMaintenance()
Check the bypass maintenance check
public
bypassMaintenance() : bool
Return values
booldispatchMaintenance()
Dispatch the maintenance action
public
dispatchMaintenance() : void
Tags
getMaintenanceAction()
Get the maintenance action
public
getMaintenanceAction() : string
Return values
stringsetBypassMaintenance()
Check the bypass maintenance check
public
setBypassMaintenance([bool $bypass = true ]) : static
Parameters
- $bypass : bool = true
Return values
staticsetMaintenanceAction()
Set the maintenance action
public
setMaintenanceAction(string $maintenance) : static
Parameters
- $maintenance : string