class Listener (View source)
void | __construct(string $commandPath) Create a new queue listener. | |
void | listen(string $connection, string $queue, ListenerOptions $options) Listen to the given queue connection. | |
Process | makeProcess(string $connection, string $queue, ListenerOptions $options) Create a new Symfony process for the worker. | |
void | runProcess(Process $process, int $memory) Run the given process. | |
bool | memoryExceeded(int $memoryLimit) Determine if the memory limit has been exceeded. | |
void | stop() Stop listening and bail out of the script. | |
void | setOutputHandler(Closure $outputHandler) Set the output handler callback. |
Create a new queue listener.
Listen to the given queue connection.
Create a new Symfony process for the worker.
Run the given process.
Determine if the memory limit has been exceeded.
Stop listening and bail out of the script.
Set the output handler callback.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Queue/Listener.html