ServiceCredentials
in package
uses
CloneWith
FinalYes
DTO with credential configuration for connecting RoadRunner to the Temporal service.
Table of Contents
Properties
- $apiKey : string
Methods
- create() : self
- withApiKey() : static
- Set the authentication token for API calls.
- __construct() : mixed
Properties
$apiKey read-only
public
string
$apiKey
Methods
create()
public
static create() : self
Return values
selfwithApiKey()
Set the authentication token for API calls.
public
withApiKey(string $key) : static
To update the API key in runtime, call the UpdateAPIKey
RPC method with the new key:
$result = \Temporal\Worker\Transport\Goridge::create()->call(
'temporal.UpdateAPIKey',
$newApiKey,
);
Parameters
- $key : string
Tags
Return values
static__construct()
private
__construct() : mixed