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.
Synopsis
Section titled “Synopsis”final class QueuePlugin implements PluginInterface
| Implements | PluginInterface |
| Source | QueuePlugin.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
register(PluginRegistrar $registrar): void | Publishes the queue.* config defaults, services and console commands. |
register()
Section titled “register()”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.
| Parameter | Type | Description |
|---|---|---|
$registrar | PluginRegistrar |