Ciaran's avatar

Lumen 5.2 & Redis Queues

Anyone else having issues with Redis Queues and Lumen 5.2?


 Argument 1 passed to Illuminate\Queue\Connectors\RedisConnector::__construct() must be an instance of Illuminate\Redis\Database, instance of Redis given, called in ../vendor/illuminate/queue/QueueServiceProvider.php on line 217 and defined  

It looks like \Laravel\Lumen\Application::registerRedisBindings() was removed in 5.2 so Illuminate\Redis\RedisServiceProvider is no longer registered with the application, causing all kinds of issues!!

Anyone else seeing this issue? My work around was to register the RedisServiceProvider in my app, but it seems like a fairly big undocumented change?

0 likes
1 reply
maximebeaudoin's avatar

For now i have register the service provider in bootstrap/app.php if that can help you!

$app->register(Illuminate\Redis\RedisServiceProvider::class);
1 like

Please or to participate in this conversation.