请问,使用redis队列,报错,是啥问题?
ErrorException in RedisConnector.php line 32:
Argument 1 passed to Illuminate\Queue\Connectors\RedisConnector::__construct() must be an instance of Illuminate\Contracts\Redis\Factory, instance of Redis given, called in /data/wwwroot/default/lumen/vendor/illuminate/queue/QueueServiceProvider.php on line 133 and defined
3 Comments
请问,使用redis队列,报错,是啥问题?
ErrorException in RedisConnector.php line 32:
Argument 1 passed to Illuminate\Queue\Connectors\RedisConnector::__construct() must be an instance of Illuminate\Contracts\Redis\Factory, instance of Redis given, called in /data/wwwroot/default/lumen/vendor/illuminate/queue/QueueServiceProvider.php on line 133 and defined
@longshuang#646 传入参数问题
1, "illuminate/redis": "5.4",
"predis/predis": "1.1"
2,$app->register(\Illuminate\Redis\RedisServiceProvider::class);
这样就ok了