ConnectManagerInterface
in
Публичный фасад Connect Manager.
Table of Contents
Methods
- async() : AsyncRuntimeInterface
- Возвращает асинхронный рантайм.
- connect() : ConnectionInterface
- Открывает соединение указанного протокола.
- connectAsync() : mixed
- Открывает соединение асинхронно внутри Fiber-рантайма.
- name() : string
- Возвращает идентификатор пакета Composer.
- pool() : ConnectionPoolInterface
- Возвращает пул соединений.
- protocols() : ProtocolRegistryInterface
- Возвращает реестр протоколов.
Methods
async()
Возвращает асинхронный рантайм.
public
async() : AsyncRuntimeInterface
Return values
AsyncRuntimeInterfaceconnect()
Открывает соединение указанного протокола.
public
connect(string $protocolId, string $endpoint[, ConnectionOptions|null $options = null ]) : ConnectionInterface
Parameters
- $protocolId : string
- $endpoint : string
- $options : ConnectionOptions|null = null
Return values
ConnectionInterfaceconnectAsync()
Открывает соединение асинхронно внутри Fiber-рантайма.
public
connectAsync(string $protocolId, string $endpoint, callable(ConnectionInterface): mixed $onConnected[, ConnectionOptions|null $options = null ]) : mixed
Parameters
- $protocolId : string
- $endpoint : string
- $onConnected : callable(ConnectionInterface): mixed
- $options : ConnectionOptions|null = null
name()
Возвращает идентификатор пакета Composer.
public
name() : string
Return values
stringpool()
Возвращает пул соединений.
public
pool() : ConnectionPoolInterface
Return values
ConnectionPoolInterfaceprotocols()
Возвращает реестр протоколов.
public
protocols() : ProtocolRegistryInterface