PHP Класс Illuminate\Queue\Console\WorkCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$description string The console command description.
$signature string The console command name.
$worker Illuminate\Queue\Worker The queue worker instance.

Открытые методы

Метод Описание
__construct ( Worker $worker ) : void Create a new queue listen command.
fire ( ) : void Execute the console command.

Защищенные методы

Метод Описание
downForMaintenance ( ) : boolean Determine if the worker should run in maintenance mode.
gatherWorkerOptions ( ) : WorkerOptions Gather all of the queue worker options as a single object.
getQueue ( string $connection ) : string Get the queue name for the worker.
listenForEvents ( ) : void Listen for the queue events in order to update the console output.
logFailedJob ( Illuminate\Queue\Events\JobFailed $event ) : void Store a failed job event.
runWorker ( string $connection, string $queue ) : array Run the worker instance.
writeOutput ( Illuminate\Contracts\Queue\Job $job, boolean $failed ) : void Write the status output for the queue worker.

Описание методов

__construct() публичный Метод

Create a new queue listen command.
public __construct ( Worker $worker ) : void
$worker Illuminate\Queue\Worker
Результат void

downForMaintenance() защищенный Метод

Determine if the worker should run in maintenance mode.
protected downForMaintenance ( ) : boolean
Результат boolean

fire() публичный Метод

Execute the console command.
public fire ( ) : void
Результат void

gatherWorkerOptions() защищенный Метод

Gather all of the queue worker options as a single object.
protected gatherWorkerOptions ( ) : WorkerOptions
Результат Illuminate\Queue\WorkerOptions

getQueue() защищенный Метод

Get the queue name for the worker.
protected getQueue ( string $connection ) : string
$connection string
Результат string

listenForEvents() защищенный Метод

Listen for the queue events in order to update the console output.
protected listenForEvents ( ) : void
Результат void

logFailedJob() защищенный Метод

Store a failed job event.
protected logFailedJob ( Illuminate\Queue\Events\JobFailed $event ) : void
$event Illuminate\Queue\Events\JobFailed
Результат void

runWorker() защищенный Метод

Run the worker instance.
protected runWorker ( string $connection, string $queue ) : array
$connection string
$queue string
Результат array

writeOutput() защищенный Метод

Write the status output for the queue worker.
protected writeOutput ( Illuminate\Contracts\Queue\Job $job, boolean $failed ) : void
$job Illuminate\Contracts\Queue\Job
$failed boolean
Результат void

Описание свойств

$description защищенное свойство

The console command description.
protected string $description
Результат string

$signature защищенное свойство

The console command name.
protected string $signature
Результат string

$worker защищенное свойство

The queue worker instance.
protected Worker,Illuminate\Queue $worker
Результат Illuminate\Queue\Worker