PHP Класс Vinelab\Minion\Provider

Автор: Abed Halawi ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$prefix string The topic prefix.

Открытые методы

Метод Описание
__call ( string $name, array $arguments ) : string Override to redirect non-existing calls to the client.
__construct ( Client $client ) Constructor.
boot ( ) Boot this provider. This is the best place to have your subscriptions/registrations for your RPCs and PubSub.
publish ( string $topic, array | mixed $arguments = null, array | mixed $argumentsKw = null, array $options = null ) : Promise Publish to a topic with the given data.

Защищенные методы

Метод Описание
getClient ( ) : Client Get the client instance.

Приватные методы

Метод Описание
setClient ( Client $client ) Set the client instance.

Описание методов

__call() публичный Метод

This allows calling client methods directly from the provider which is useful when passing the Client to a registered Closure.
public __call ( string $name, array $arguments ) : string
$name string
$arguments array
Результат string

__construct() публичный Метод

Constructor.
public __construct ( Client $client )
$client Client

boot() абстрактный публичный Метод

Boot this provider. This is the best place to have your subscriptions/registrations for your RPCs and PubSub.
abstract public boot ( )

getClient() защищенный Метод

Get the client instance.
protected getClient ( ) : Client
Результат Client

publish() публичный Метод

Publish to a topic with the given data.
public publish ( string $topic, array | mixed $arguments = null, array | mixed $argumentsKw = null, array $options = null ) : Promise
$topic string
$arguments array | mixed
$argumentsKw array | mixed
$options array
Результат React\Promise\Promise

Описание свойств

$prefix защищенное свойство

The topic prefix.
protected string $prefix
Результат string