class
Illuminate
/
Queue
/
Capsule
/
Manager
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Manager
Uses
Properties
Methods
public
__construct ( Container $container ) : void
Create a new queue capsule manager.
Parameters
- $container Container |null
protected
setupDefaultConfiguration ( ) : void
Setup the default queue configuration options.
protected
setupManager ( ) : void
Build the queue manager instance.
protected
registerConnectors ( ) : void
Register the default connectors that the component ships with.
public
static
connection ( $connection ) : Queue
Get a connection instance from the global manager.
Parameters
- $connection string|null
public
static
push ( $job , $data , $queue , $connection ) : mixed
Push a new job onto the queue.
Parameters
- $job string
- $data mixed
- $queue string|null
- $connection string|null
public
static
bulk ( $jobs , $data , $queue , $connection ) : mixed
Push a new an array of jobs onto the queue.
Parameters
- $jobs array
- $data mixed
- $queue string|null
- $connection string|null
public
static
later ( $delay , $job , $data , $queue , $connection ) : mixed
Push a new job onto the queue after (n) seconds.
Parameters
- $delay DateTimeInterface |DateInterval |int
- $job string
- $data mixed
- $queue string|null
- $connection string|null
public
getConnection ( $name ) : Queue
Get a registered connection instance.
Parameters
- $name string|null
public
addConnection ( array $config , $name ) : void
Register a connection with the manager.
Parameters
- $config array
- $name string
public
__call ( $method , $parameters ) : mixed
Pass dynamic instance methods to the manager.
Parameters
- $method string
- $parameters array
public
static
__callStatic ( $method , $parameters ) : mixed
Dynamically pass methods to the default connection.
Parameters
- $method string
- $parameters array