Documentation

AbstractPlugin
in package
implements TemporalPluginInterface uses ConnectionPluginTrait, ClientPluginTrait, ScheduleClientPluginTrait, WorkerPluginTrait

AbstractYes

Abstract base class providing no-op defaults for all plugin methods.

Plugin authors can extend this and override only what they need.

Table of Contents

Interfaces

TemporalPluginInterface
Combined plugin interface for bundles that configure connection, client, schedule client, and worker.

Properties

$name  : string

Methods

__construct()  : mixed
configureClient()  : void
configureScheduleClient()  : void
configureServiceClient()  : ServiceClientInterface
configureWorker()  : void
configureWorkerFactory()  : void
getName()  : string
Unique name identifying this plugin (e.g., "my-org.tracing").
initializeWorker()  : void
run()  : int
runWorker()  : PromiseInterface

Properties

Methods

__construct()

public __construct(string $name) : mixed
Parameters
$name : string

getName()

Unique name identifying this plugin (e.g., "my-org.tracing").

public getName() : string

Used for deduplication and diagnostics.

Return values
string

runWorker()

public runWorker(callable $handler, ServerRequestInterface $request, array<string|int, mixed> $headers, callable $next) : PromiseInterface
Parameters
$handler : callable
$request : ServerRequestInterface
$headers : array<string|int, mixed>
$next : callable
Return values
PromiseInterface

        
On this page

Search results