Manager
class Manager mixin QueueManager mixin Queue
Traits
Properties
static protected object | $instance | The current globally used instance. |
from CapsuleManagerTrait |
protected Container | $container | The container instance. |
from CapsuleManagerTrait |
protected QueueManager | $manager | The queue manager instance. |
Methods
Setup the default queue configuration options.
Build the queue manager instance.
Register the default connectors that the component ships with.
Get a connection instance from the global manager.
Push a new job onto the queue.
Push a new an array of jobs onto the queue.
Get a registered connection instance.
Register a connection with the manager.
Get the queue manager instance.
Pass dynamic instance methods to the manager.
Dynamically pass methods to the default connection.
Details
in
CapsuleManagerTrait at line 30
protected void
setupContainer(Container $container)
Setup the IoC container instance.
in
CapsuleManagerTrait at line 44
void
setAsGlobal()
Make this capsule instance available globally.
in
CapsuleManagerTrait at line 54
Container
getContainer()
Get the IoC container instance.
in
CapsuleManagerTrait at line 65
void
setContainer(Container $container)
Set the IoC container instance.
at line 31
void
__construct(Container $container = null)
Create a new queue capsule manager.
at line 50
protected void
setupDefaultConfiguration()
Setup the default queue configuration options.
at line 60
protected void
setupManager()
Build the queue manager instance.
at line 70
protected void
registerConnectors()
Register the default connectors that the component ships with.
at line 83
static Queue
connection(string $connection = null)
Get a connection instance from the global manager.
at line 97
static mixed
push(string $job, mixed $data = '', string $queue = null, string $connection = null)
Push a new job onto the queue.
at line 111
static mixed
bulk(array $jobs, mixed $data = '', string $queue = null, string $connection = null)
Push a new an array of jobs onto the queue.
at line 126
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.
at line 137
Queue
getConnection(string $name = null)
Get a registered connection instance.
at line 149
void
addConnection(array $config, string $name = 'default')
Register a connection with the manager.
at line 159
QueueManager
getQueueManager()
Get the queue manager instance.
at line 171
mixed
__call(string $method, array $parameters)
Pass dynamic instance methods to the manager.
at line 183
static mixed
__callStatic(string $method, array $parameters)
Dynamically pass methods to the default connection.