Skip to content

QueuePlugin

Registers the queue subsystem: queue.* setting defaults (sync driver, out of the box), a default LogFailedJobStore, the QueueManager/QueueWorker services, queue:work, and the queue:failed:* dead-letter inspection commands (a no-op error, not a crash, against the default store — see AbstractQueueFailedCommand::resolveInspectableStore()).

A persistent backend (e.g. quioteframework/queue-db) registers its own alias into QueueDriverRegistry from its own plugin — this class does not need to change for that.

final class QueuePlugin implements PluginInterface

ImplementsPluginInterface
SourceQueuePlugin.php
MethodDescription
register(PluginRegistrar $registrar): voidPublishes the queue.* config defaults, services and console commands.

public function register(PluginRegistrar $registrar): void

Publishes the queue.* config defaults, services and console commands.

Registers the sync driver default and retry settings, a singleton LogFailedJobStore as the FailedJobStoreInterface binding, the QueueConfig/JobExecutor/QueueWorker/ QueueManager singletons, and the queue:work and queue:failed:* commands. Because PluginRegistrar::service() only sets a binding that is absent, an app or a later plugin can override any of these.

ParameterTypeDescription
$registrarPluginRegistrar