idealistsoft/framework-iron-mq

此包已被弃用,不再维护。作者建议使用 infuse/iron-mq 包。

Infuse Framework 的 IronMQ 模块

1.2 2016-09-20 20:03 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:38:35 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads HHVM Status

Infuse Framework 的 IronMQ 模块

安装

  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 进行安装。