Property | Type | Description | |
---|---|---|---|
$connections | PhpAmqpLib\Connection\AbstractConnection[] | ||
$defaultConnection | string |
Method | Description | |
---|---|---|
__construct ( array $connections, string $defaultConnection ) | ConnectionRegistry constructor. | |
addConnection ( string $name, PhpAmqpLib\Connection\AbstractConnection $connection ) | Add connection to connections registry. | |
getConnection ( string $name = null ) : PhpAmqpLib\Connection\AbstractConnection | Return a connection. |
public __construct ( array $connections, string $defaultConnection ) | ||
$connections | array | Array of connections. |
$defaultConnection | string | Key of default connection. |
public addConnection ( string $name, PhpAmqpLib\Connection\AbstractConnection $connection ) | ||
$name | string | Key for connection. |
$connection | PhpAmqpLib\Connection\AbstractConnection | Connection object. |
public getConnection ( string $name = null ) : PhpAmqpLib\Connection\AbstractConnection | ||
$name | string | Key of connection to get. |
return | PhpAmqpLib\Connection\AbstractConnection |
protected AbstractConnection[],PhpAmqpLib\Connection $connections | ||
return | PhpAmqpLib\Connection\AbstractConnection[] |