idanoo / laravel-resque
此包已被弃用,不再维护。未建议替代包。
idanoo/php-resque的包装器(Laravel/Lumen ^5.2.0)
2.1.1
2023-03-21 23:25 UTC
Requires
- idanoo/php-resque: ^2.1
- illuminate/config: ^8.0
- illuminate/console: ^8.0
Requires (Dev)
Replaces
README
此包提供以下工具,以及更多
- 将任务添加到队列
- 控制台命令运行单个工作进程
安装
通过composer
$ composer require hlgrrnhrdt/laravel-resque
将包中的配置文件config/resque.php
复制到您的配置文件夹。另外,需要在config/redis.php
中配置默认的redis连接。
Laravel
'providers' => [ Idanoo\Resque\ResqueServiceProvider::class ]
Lumen
打开bootstrap/app.php
并注册所需的服务提供程序
$app->register(Idanoo\Resque\ResqueServiceProvider::class);
并通过以下命令加载配置
$app->configure('resque');