fittinq/symfony-rabbitmq
最新稳定版本:22.1.2
Composer 安装命令:
composer require fittinq/symfony-rabbitmq
包简介
README 文档
README
This helps creating connections to RabbitMQ
Install via composer
composer require fittinq\symfony-rabbitmq
Configure bundle
config/bundles.php
<?php
return [
// ...
Fittinq\Symfony\RabbitMQ\SymfonyRabbitMQBundle::class => ['all' => true],
];
Add the following entries in your .env file and change where needed:
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
RABBITMQ_USERNAME=guest
RABBITMQ_PASSWORD=guest
Add the following entries in your service.yaml this gives the consumer a handler to handle single messages and an error handler if it can't consume any.
Fittinq\Symfony\Rabbitmq\Command\ConsumeCommand:
tags:
- { name: 'console.command', command: 'name:of:command', description: 'description' }
arguments:
- Fittinq\Symfony\RabbitMQ\RabbitMQ\RabbitMQ
- Fittinq\Symfony\RabbitMQ\Handler\Handler
- Fittinq\Symfony\RabbitMQ\ErrorHandler\ErrorHandler
- 'queueName'
统计信息
- 总下载量: 5.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-05-12