class Illuminate / Queue / QueueManager
You are viewing an older version of the documentation. For the latest, please visit master documentation.

QueueManager

Implements

Properties

protected

$app Application

The application instance.

Default: null
protected

$connections array

The array of resolved queue connections.

Default: []
protected

$connectors array

The array of resolved queue connectors.

Default: []

Methods

public

__construct ( $app ) : void

Create a new queue manager instance.

Parameters

public

before ( $callback ) : void

Register an event listener for the before job event.

Parameters

  • $callback mixed
public

after ( $callback ) : void

Register an event listener for the after job event.

Parameters

  • $callback mixed
public

exceptionOccurred ( $callback ) : void

Register an event listener for the exception occurred job event.

Parameters

  • $callback mixed
public

looping ( $callback ) : void

Register an event listener for the daemon queue loop.

Parameters

  • $callback mixed
public

failing ( $callback ) : void

Register an event listener for the failed job event.

Parameters

  • $callback mixed
public

stopping ( $callback ) : void

Register an event listener for the daemon queue stopping.

Parameters

  • $callback mixed
public

connected ( $name ) : bool

Determine if the driver is connected.

Parameters

  • $name string|null
public

connection ( $name ) : Queue

Resolve a queue connection instance.

Parameters

  • $name string|null
protected

resolve ( $name ) : Queue

Resolve a queue connection.

Parameters

  • $name string
protected

getConnector ( $driver ) : ConnectorInterface

Get the connector for a given driver.

Parameters

  • $driver string
public

extend ( $driver , Closure $resolver ) : void

Add a queue connection resolver.

Parameters

public

addConnector ( $driver , Closure $resolver ) : void

Add a queue connection resolver.

Parameters

protected

getConfig ( $name ) : array|null

Get the queue connection configuration.

Parameters

  • $name string
public

getDefaultDriver ( ) : string

Get the name of the default queue connection.

public

setDefaultDriver ( $name ) : void

Set the name of the default queue connection.

Parameters

  • $name string
public

getName ( $connection ) : string

Get the full name for the given connection.

Parameters

  • $connection string|null
public

getApplication ( ) : Application

Get the application instance used by the manager.

public

setApplication ( $app ) : $this

Set the application instance used by the manager.

Parameters

public

__call ( $method , $parameters ) : mixed

Dynamically pass calls to the default connection.

Parameters

  • $method string
  • $parameters array