QueueManager
Implements
Properties
$connections array
The array of resolved queue connections.
$connectors array
The array of resolved queue connectors.
Methods
before ( $callback ) : void
Register an event listener for the before job event.
Parameters
- $callback mixed
after ( $callback ) : void
Register an event listener for the after job event.
Parameters
- $callback mixed
exceptionOccurred ( $callback ) : void
Register an event listener for the exception occurred job event.
Parameters
- $callback mixed
looping ( $callback ) : void
Register an event listener for the daemon queue loop.
Parameters
- $callback mixed
failing ( $callback ) : void
Register an event listener for the failed job event.
Parameters
- $callback mixed
stopping ( $callback ) : void
Register an event listener for the daemon queue stopping.
Parameters
- $callback mixed
connected ( $name ) : bool
Determine if the driver is connected.
Parameters
- $name string|null
connection ( $name ) : Queue
Resolve a queue connection instance.
Parameters
- $name string|null
getConnector ( $driver ) : ConnectorInterface
Get the connector for a given driver.
Parameters
- $driver string
extend ( $driver , Closure $resolver ) : void
Add a queue connection resolver.
Parameters
- $driver string
- $resolver Closure
addConnector ( $driver , Closure $resolver ) : void
Add a queue connection resolver.
Parameters
- $driver string
- $resolver Closure
getConfig ( $name ) : array|null
Get the queue connection configuration.
Parameters
- $name string
getDefaultDriver ( ) : string
Get the name of the default queue connection.
setDefaultDriver ( $name ) : void
Set the name of the default queue connection.
Parameters
- $name string
getName ( $connection ) : string
Get the full name for the given connection.
Parameters
- $connection string|null
setApplication ( $app ) : $this
Set the application instance used by the manager.
Parameters
- $app Application
__call ( $method , $parameters ) : mixed
Dynamically pass calls to the default connection.
Parameters
- $method string
- $parameters array