Manager
class Manager (View source)
Traits
Methods
void
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
getConnection(
string $name = null)
Get a registered connection instance.
void
addConnection(
array $config,
string $name = 'default')
Register a connection with the manager.
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
in CapsuleManagerTrait at line line 44
void
setAsGlobal()
Make this capsule instance available globally.
in CapsuleManagerTrait at line line 65
void
setContainer(
Container $container)
Set the IoC container instance.
at line line 79
static
Queue
connection(
string $connection = null)
Get a connection instance from the global manager.
at line line 93
static
mixed
push(
string $job,
mixed $data = '',
string $queue = null,
string $connection = null)
Push a new job onto the queue.
at line line 107
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 line 122
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 line 145
void
addConnection(
array $config,
string $name = 'default')
Register a connection with the manager.
at line line 167
mixed
__call(
string $method,
array $parameters)
Pass dynamic instance methods to the manager.
at line line 179
static
mixed
__callStatic(
string $method,
array $parameters)
Dynamically pass methods to the default connection.