class Connection (View source)

Constants

private SUPPORTED_CONNECTIONS

Supported connection drivers and their adapter classes

Methods

__construct(array $config)

Configuration of worker connection

static bool
pushConnection(string $name, string $classname)

Register a new connection adapter at runtime

setConnection(string $connection)

Set the connection driver to use

mixed
__call(string $name, array $arguments)

Proxy method calls to the underlying adapter

getAdapter()

Get the configured adapter instance

Details

__construct(array $config)

Configuration of worker connection

Parameters

array $config

static bool pushConnection(string $name, string $classname)

Register a new connection adapter at runtime

Parameters

string $name
string $classname

Return Value

bool

Exceptions

ConnexionException

Connection setConnection(string $connection)

Set the connection driver to use

Parameters

string $connection

Return Value

Connection

mixed __call(string $name, array $arguments)

Proxy method calls to the underlying adapter

Parameters

string $name
array $arguments

Return Value

mixed

Exceptions

MethodCallException

QueueAdapter getAdapter()

Get the configured adapter instance

Return Value

QueueAdapter

Exceptions

ConnexionException