ProcessCredentialResolver
in package
FinalYes
Resolves role credentials only when a Laravel client is constructed.
Table of Contents
Constants
- CONTROL_TOKEN : mixed = 'DURABLE_WORKFLOW_CONTROL_TOKEN'
- SHARED_TOKEN : mixed = 'DURABLE_WORKFLOW_TOKEN'
- WORKER_TOKEN : mixed = 'DURABLE_WORKFLOW_WORKER_TOKEN'
Methods
- controlClient() : Client
- workerClient() : Client
- __construct() : mixed
- assertAuthenticationMode() : void
- credential() : string|null
- credentials() : array{?string, ?string, ?string}
Constants
CONTROL_TOKEN
private
mixed
CONTROL_TOKEN
= 'DURABLE_WORKFLOW_CONTROL_TOKEN'
SHARED_TOKEN
private
mixed
SHARED_TOKEN
= 'DURABLE_WORKFLOW_TOKEN'
WORKER_TOKEN
private
mixed
WORKER_TOKEN
= 'DURABLE_WORKFLOW_WORKER_TOKEN'
Methods
controlClient()
public
static controlClient(ServiceConfiguration $configuration[, Transport|null $transport = null ]) : Client
Parameters
- $configuration : ServiceConfiguration
- $transport : Transport|null = null
Return values
ClientworkerClient()
public
static workerClient(ServiceConfiguration $configuration[, Transport|null $transport = null ]) : Client
Parameters
- $configuration : ServiceConfiguration
- $transport : Transport|null = null
Return values
Client__construct()
private
__construct() : mixed
assertAuthenticationMode()
private
static assertAuthenticationMode(string|null $token, string|null $controlToken, string|null $workerToken) : void
Parameters
- $token : string|null
- $controlToken : string|null
- $workerToken : string|null
credential()
private
static credential(string $name) : string|null
Parameters
- $name : string
Return values
string|nullcredentials()
private
static credentials() : array{?string, ?string, ?string}