class Manager (View source)

Traits

Methods

void
setAsGlobal()

Make this capsule instance available globally.

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.

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

void setAsGlobal()

Make this capsule instance available globally.

Return Value

void

Container getContainer()

Get the IoC container instance.

Return Value

Container

void setContainer( Container $container)

Set the IoC container instance.

Parameters

Container $container

Return Value

void

at line line 27
void __construct( Container $container = null)

Create a new queue capsule manager.

Parameters

Container $container

Return Value

void

at line line 79
static Queue connection( string $connection = null)

Get a connection instance from the global manager.

Parameters

string $connection

Return Value

Queue

at line line 93
static mixed push( string $job, mixed $data = '', string $queue = null, string $connection = null)

Push a new job onto the queue.

Parameters

string $job
mixed $data
string $queue
string $connection

Return Value

mixed

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.

Parameters

array $jobs
mixed $data
string $queue
string $connection

Return Value

mixed

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.

Parameters

DateTime|int $delay
string $job
mixed $data
string $queue
string $connection

Return Value

mixed

at line line 133
Queue getConnection( string $name = null)

Get a registered connection instance.

Parameters

string $name

Return Value

Queue

at line line 145
void addConnection( array $config, string $name = 'default')

Register a connection with the manager.

Parameters

array $config
string $name

Return Value

void

at line line 155
QueueManager getQueueManager()

Get the queue manager instance.

Return Value

QueueManager

at line line 167
mixed __call( string $method, array $parameters)

Pass dynamic instance methods to the manager.

Parameters

string $method
array $parameters

Return Value

mixed

at line line 179
static mixed __callStatic( string $method, array $parameters)

Dynamically pass methods to the default connection.

Parameters

string $method
array $parameters

Return Value

mixed