infuse / iron-mq
IronMQ模块,用于Infuse框架
1.2
2016-09-20 20:03 UTC
Requires
- php: >=5.4.0
- iron-io/iron_mq: ~4.0
Requires (Dev)
- infuse/infuse: ~1.4
- satooshi/php-coveralls: 0.6.1
This package is auto-updated.
Last update: 2024-09-13 08:11:40 UTC
README
IronMQ模块,用于Infuse框架
安装
- 使用composer安装此包
composer require infuse/iron-mq
- 将服务添加到应用程序配置中的
services
'services' => [ // ... 'ironmq' => 'Infuse\IronMQ\Services\IronMQ' // .... ]
- 将控制台命令添加到应用程序配置中的
modules.commands
以运行作业
'modules' => [ // ... 'commands' => [ // ... 'Infuse\IronMQ\Console\SetupCommand', 'Infuse\IronMQ\Console\ProcessCommand' ] ]
- (可选) 在路由表中添加一个端点以接收推队列消息
'routes' => [ // ... 'POST /iron/message' => [ 'Infuse\IronMQ\Controller', 'message' ] // ... ]
使用方法
如果您正在使用iron.io推送队列,可以使用./infuse iron-setup
进行安装