ProcessCredentialResolver
in package
FinalYes
Resolves role credentials only when a Laravel client is constructed.
Table of Contents
Constants
- CLIENT_TOKEN : mixed = 'DURABLE_WORKFLOW_CLIENT_TOKEN'
- PROCESS_ROLE : mixed = 'DURABLE_WORKFLOW_PROCESS_ROLE'
- PROCESS_TOKEN : mixed = 'DURABLE_WORKFLOW_PROCESS_TOKEN'
- SHARED_TOKEN : mixed = 'DURABLE_WORKFLOW_TOKEN'
- WORKER_TOKEN : mixed = 'DURABLE_WORKFLOW_WORKER_TOKEN'
Methods
- applicationClient() : Client
- workerClient() : Client
- workerCredentialRole() : string
- __construct() : mixed
- assertAuthenticationMode() : void
- credential() : string|null
- credentials() : array{?string, ?string, ?string}
Constants
CLIENT_TOKEN
private
mixed
CLIENT_TOKEN
= 'DURABLE_WORKFLOW_CLIENT_TOKEN'
PROCESS_ROLE
private
mixed
PROCESS_ROLE
= 'DURABLE_WORKFLOW_PROCESS_ROLE'
PROCESS_TOKEN
private
mixed
PROCESS_TOKEN
= 'DURABLE_WORKFLOW_PROCESS_TOKEN'
SHARED_TOKEN
private
mixed
SHARED_TOKEN
= 'DURABLE_WORKFLOW_TOKEN'
WORKER_TOKEN
private
mixed
WORKER_TOKEN
= 'DURABLE_WORKFLOW_WORKER_TOKEN'
Methods
applicationClient()
public
static applicationClient(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
ClientworkerCredentialRole()
public
static workerCredentialRole() : string
Return values
string__construct()
private
__construct() : mixed
assertAuthenticationMode()
private
static assertAuthenticationMode(string|null $token, string|null $clientToken, string|null $workerToken) : void
Parameters
- $token : string|null
- $clientToken : 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}