Manager (Queue\Capsule)
Manager
class Manager (View source)
Traits
CapsuleManagerTrait |
Methods
void | setAsGlobal() Make this capsule instance available globally. | from CapsuleManagerTrait |
Container | getContainer() Get the IoC container instance. | from CapsuleManagerTrait |
void | setContainer(Container $container) Set the IoC container instance. | from CapsuleManagerTrait |
void | __construct(Container $container = null) Create a new queue capsule manager. | |
static Queue | connection(string $connection = null) Get a connection instance from the global manager. | |
static mixed | push(string $job, mixed $data = '', string $queue = null, string $connection = null) Push a new job onto the queue. | |
static mixed | bulk(array $jobs, mixed $data = '', string $queue = null, string $connection = null) Push a new an array of jobs onto the queue. | |
static mixed | later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null, string $connection = null) Push a new job onto the queue after a delay. | |
Queue | getConnection(string $name = null) Get a registered connection instance. | |
void | addConnection(array $config, string $name = 'default') Register a connection with the manager. | |
QueueManager | getQueueManager() Get the queue manager instance. | |
mixed | __call(string $method, array $parameters) Pass dynamic instance methods to the manager. | |
static mixed | __callStatic(string $method, array $parameters) Dynamically pass methods to the default connection. |
Details
void setAsGlobal()
Make this capsule instance available globally.
Container getContainer()
Get the IoC container instance.
void setContainer(Container $container)
Set the IoC container instance.
void __construct(Container $container = null)
Create a new queue capsule manager.
static Queue connection(string $connection = null)
Get a connection instance from the global manager.
static mixed push(string $job, mixed $data = '', string $queue = null, string $connection = null)
Push a new job onto the queue.
static mixed bulk(array $jobs, mixed $data = '', string $queue = null, string $connection = null)
Push a new an array of jobs onto the queue.
static mixed later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null, string $connection = null)
Push a new job onto the queue after a delay.
Queue getConnection(string $name = null)
Get a registered connection instance.
void addConnection(array $config, string $name = 'default')
Register a connection with the manager.
QueueManager getQueueManager()
Get the queue manager instance.
mixed __call(string $method, array $parameters)
Pass dynamic instance methods to the manager.
static mixed __callStatic(string $method, array $parameters)
Dynamically pass methods to the default connection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Queue/Capsule/Manager.html