PHP 클래스 Vinelab\Minion\Provider

저자: Abed Halawi ([email protected])
파일 보기 프로젝트 열기: vinelab/minion

보호된 프로퍼티들

프로퍼티 타입 설명
$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