Свойство | Тип | Описание | |
---|---|---|---|
$connections | PhpAmqpLib\Connection\AbstractConnection[] | ||
$defaultConnection | string |
Метод | Описание | |
---|---|---|
__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. |
Результат | PhpAmqpLib\Connection\AbstractConnection |
protected AbstractConnection[],PhpAmqpLib\Connection $connections | ||
Результат | PhpAmqpLib\Connection\AbstractConnection[] |