class FileBasedMaintenanceMode implements MaintenanceMode

Methods

__construct(Filesystem $files = new Filesystem())

No description

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.

string
path()

Get the path where the file is stored that signals that the application is down for maintenance.

Details

at line 15
__construct(Filesystem $files = new Filesystem())

No description

Parameters

Filesystem $files

at line 22
void activate(array $payload)

Take the application down for maintenance.

Parameters

array $payload

Return Value

void

at line 33
void deactivate()

Take the application out of maintenance.

Return Value

void

at line 47
bool active()

Determine if the application is currently down for maintenance.

Return Value

bool

at line 57
array data()

Get the data array which was provided when the application was placed into maintenance.

Return Value

array

Exceptions

FileNotFoundException

at line 82
protected string path()

Get the path where the file is stored that signals that the application is down for maintenance.

Return Value

string