infuse/iron-mq

IronMQ模块,用于Infuse框架

1.2 2016-09-20 20:03 UTC

This package is auto-updated.

Last update: 2024-09-13 08:11:40 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads HHVM Status

IronMQ模块,用于Infuse框架

安装

  1. 使用composer安装此包
composer require infuse/iron-mq
  1. 将服务添加到应用程序配置中的services
'services' => [
	// ...
	'ironmq' => 'Infuse\IronMQ\Services\IronMQ'
	// ....
]
  1. 将控制台命令添加到应用程序配置中的modules.commands以运行作业
'modules' => [
	// ...
	'commands' => [
		// ...
		'Infuse\IronMQ\Console\SetupCommand',
		'Infuse\IronMQ\Console\ProcessCommand'
	]
]
  1. (可选) 在路由表中添加一个端点以接收推队列消息
'routes' => [
	// ...
	'POST /iron/message' => [
		'Infuse\IronMQ\Controller',
		'message'
    ]
	// ...
]

使用方法

如果您正在使用iron.io推送队列,可以使用./infuse iron-setup进行安装