class ScheduleWatcher extends Watcher

Constants

protected LAST_RECORDED_TASK_CONTEXT_KEY

Properties

protected Application $app

The application instance.

Methods

__construct(array $options = [])

Create a new watcher instance.

from  Watcher
void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
array
hideParameters(array $data, array $hidden)

Hide the given parameters.

from  Watcher
void
recordCommand(ScheduledTaskFailed|ScheduledTaskFinished $event)

Record a scheduled command that was executed.

void
recordFinishedCommand(ScheduledTaskFinished $event)

Record a successfully finished scheduled command.

void
recordFailedCommand(ScheduledTaskFailed $event)

Record a failed scheduled command.

makeEntry(Event $task, array $outcome)

Create an entry for the given scheduled command.

int
taskIdentity(Event $task)

Get the identity for the given scheduled task.

Details

in Watcher at line 18
__construct(array $options = [])

Create a new watcher instance.

Parameters

array $options

the configured watcher options

at line 29
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

in Watcher at line 31
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

in Watcher at line 41
protected array hideParameters(array $data, array $hidden)

Hide the given parameters.

Parameters

array $data
array $hidden

Return Value

array

at line 43
void recordCommand(ScheduledTaskFailed|ScheduledTaskFinished $event)

Record a scheduled command that was executed.

Parameters

ScheduledTaskFailed|ScheduledTaskFinished $event

Return Value

void

at line 61
protected void recordFinishedCommand(ScheduledTaskFinished $event)

Record a successfully finished scheduled command.

Parameters

ScheduledTaskFinished $event

Return Value

void

at line 92
protected void recordFailedCommand(ScheduledTaskFailed $event)

Record a failed scheduled command.

Parameters

ScheduledTaskFailed $event

Return Value

void

at line 121
protected IncomingEntry makeEntry(Event $task, array $outcome)

Create an entry for the given scheduled command.

Parameters

Event $task
array $outcome

Return Value

IncomingEntry

at line 138
protected int taskIdentity(Event $task)

Get the identity for the given scheduled task.

Parameters

Event $task

Return Value

int