CacheBasedMaintenanceMode
class CacheBasedMaintenanceMode implements MaintenanceMode
Methods
__construct(Factory $cache, string $store, string $key)
Create a new cache based maintenance mode implementation.
void
activate(array $payload)
Take the application down for maintenance.
void
deactivate()
Take the application out of maintenance.
bool
active()
Determine if the application is currently down for maintenance.
array
data()
Get the data array which was provided when the application was placed into maintenance.
getStore()
Get the cache store to use.
Details
at line 17
__construct(Factory $cache, string $store, string $key)
Create a new cache based maintenance mode implementation.
at line 27
void
activate(array $payload)
Take the application down for maintenance.
at line 37
void
deactivate()
Take the application out of maintenance.
at line 47
bool
active()
Determine if the application is currently down for maintenance.
at line 55
array
data()
Get the data array which was provided when the application was placed into maintenance.
at line 63
protected Repository
getStore()
Get the cache store to use.