PHP Class Vinelab\Minion\Provider

Author: Abed Halawi ([email protected])
Afficher le fichier Open project: vinelab/minion

Protected Properties

Свойство Type Description
$prefix string The topic prefix.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
getClient ( ) : Client Get the client instance.

Private Methods

Méthode Description
setClient ( Client $client ) Set the client instance.

Method Details

__call() public méthode

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
Résultat string

__construct() public méthode

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

boot() abstract public méthode

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

getClient() protected méthode

Get the client instance.
protected getClient ( ) : Client
Résultat Client

publish() public méthode

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
Résultat React\Promise\Promise

Property Details

$prefix protected_oe property

The topic prefix.
protected string $prefix
Résultat string