Skip to content

QueueConfig

Typed snapshot of the queue.* settings family.

Defaults here are read as fallbacks only — QueuePlugin is what actually publishes them into Config via configDefault().

final readonly class QueueConfig

SourceQueueConfig.php
PropertyTypeDescription
$defaultDriverstringreadonly.
$retryBackoffSecondsintreadonly.
$retryMaxAttemptsintreadonly.

public function __construct(string $defaultDriver, int $retryMaxAttempts, int $retryBackoffSeconds): mixed

ParameterTypeDescription
$defaultDriverstring
$retryMaxAttemptsint
$retryBackoffSecondsint

Returns mixed

MethodDescription
fromConfig(): QueueConfigReads the queue.* family out of Config into one immutable snapshot, falling back to the sync driver with three attempts five seconds apart when the app (or QueuePlugin) has published nothing.

public static function fromConfig(): QueueConfig

Reads the queue.* family out of Config into one immutable snapshot, falling back to the sync driver with three attempts five seconds apart when the app (or QueuePlugin) has published nothing.

Returns QueueConfig