Durable Workflow PHP SDK — API Reference

Guides

WorkerFactory
in package

FinalYes

Builds workers from Symfony's tagged, autowired handler services.

Table of Contents

Properties

$client  : Client
$configuration  : ServiceConfiguration
$events  : EventDispatcherInterface|null
$handlers  : iterable<string|int, mixed>
$logger  : LoggerInterface|null

Methods

__construct()  : mixed
make()  : Worker
pollTimeoutSeconds()  : int

Properties

$events read-only

private EventDispatcherInterface|null $events = null

$handlers read-only

private iterable<string|int, mixed> $handlers

Methods

__construct()

public __construct(ServiceConfiguration $configuration, Client $client, iterable<string|int, object> $handlers[, LoggerInterface|null $logger = null ][, EventDispatcherInterface|null $events = null ]) : mixed
Parameters
$configuration : ServiceConfiguration
$client : Client
$handlers : iterable<string|int, object>
$logger : LoggerInterface|null = null
$events : EventDispatcherInterface|null = null

make()

public make([string|null $taskQueue = null ]) : Worker
Parameters
$taskQueue : string|null = null
Return values
Worker

pollTimeoutSeconds()

public pollTimeoutSeconds() : int
Return values
int
On this page

Search results