Skip to content

QueueRedisPlugin

Registers the redis queue driver alias and publishes queue.redis.* config defaults.

Unlike QueueDbPlugin, the Redis connection is self-contained (built straight from a DSN, no dependency on the current Context’s DatabaseManager).

final class QueueRedisPlugin implements PluginInterface

ImplementsPluginInterface
SourceQueueRedisPlugin.php
MethodDescription
register(PluginRegistrar $registrar): voidPublishes the queue.redis.* defaults and registers the redis driver.

public function register(PluginRegistrar $registrar): void

Publishes the queue.redis.* defaults and registers the redis driver.

Adds the redis alias to QueueDriverRegistry and binds RedisQueueDriver as a singleton whose factory builds a Predis client from queue.redis.dsn. The client is constructed lazily, when the driver is first resolved, not while plugins are registering.

ParameterTypeDescription
$registrarPluginRegistrar