IronMQ module for Infuse Framework
- Install the package with composer:
composer require infuse/iron-mq
- Add the service to
services
in your app's configuration:
'services' => [
// ...
'ironmq' => 'Infuse\IronMQ\Services\IronMQ'
// ....
]
- Add the console command to run jobs to
modules.commands
in your app's configuration:
'modules' => [
// ...
'commands' => [
// ...
'Infuse\IronMQ\Console\SetupCommand',
'Infuse\IronMQ\Console\ProcessCommand'
]
]
- (optional) Add an endpoint to your routing table to receive push queue messages:
'routes' => [
// ...
'POST /iron/message' => [
'Infuse\IronMQ\Controller',
'message'
]
// ...
]
If you are using iron.io push queues they can be installed with ./infuse iron-setup