Schedule
class Schedule mixin PendingEventAttributes (View source)
Traits
Constants
SUNDAY |
|
MONDAY |
|
TUESDAY |
|
WEDNESDAY |
|
THURSDAY |
|
FRIDAY |
|
SATURDAY |
|
Properties
static protected array | $macros | The registered string macros. |
from Macroable |
protected Event[] | $events | All of the events on the schedule. |
|
protected EventMutex | $eventMutex | The event mutex implementation. |
|
protected SchedulingMutex | $schedulingMutex | The scheduling mutex implementation. |
|
protected DateTimeZone|string | $timezone | The timezone the date should be evaluated on. |
|
protected Dispatcher | $dispatcher | The job dispatcher implementation. |
|
protected array<string,bool> | $mutexCache | The cache of mutex results. |
|
protected PendingEventAttributes|null | $attributes | The attributes to pass to the event. |
|
protected PendingEventAttributes> | $groupStack | The schedule group attributes stack. |
Methods
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically handle calls into the schedule instance.
Add a new callback event to the schedule.
Add a new Artisan command event to the schedule.
Add a new job callback event to the schedule.
Dispatch the given job to the queue.
Dispatch the given unique job to the queue.
Dispatch the given job right now.
Compile parameters for a command.
Compile array input for a command.
Determine if the server is allowed to run this event.
Specify the cache store that should be used to store mutexes.
Get the job dispatcher, if available.
Details
mixed
__call(string $method, array $parameters)
Dynamically handle calls into the schedule instance.
CallbackEvent
call(string|callable $callback, array $parameters = [])
Add a new callback event to the schedule.
Event
command(string $command, array $parameters = [])
Add a new Artisan command event to the schedule.
CallbackEvent
job(object|string $job, string|null $queue = null, string|null $connection = null)
Add a new job callback event to the schedule.
protected void
dispatchToQueue(object $job, string|null $queue, string|null $connection)
Dispatch the given job to the queue.
protected void
dispatchUniqueJobToQueue(object $job, string|null $queue, string|null $connection)
Dispatch the given unique job to the queue.
protected void
mergePendingAttributes(Event $event)
Merge the current group attributes with the given event.
bool
serverShouldRun(Event $event, DateTimeInterface $time)
Determine if the server is allowed to run this event.