gepur-it / rabbitmq-bundle
RabbitMQ 连接包
5.4.1
2021-11-30 11:16 UTC
Requires
- php: ^7.4|^8.0
- ext-amqp: *
- symfony/config: ^5.0
- symfony/dependency-injection: ^5.0
- symfony/http-kernel: ^5.0
- symfony/yaml: ^5.0
Requires (Dev)
- vimeo/psalm: ^3.4
This package is auto-updated.
Last update: 2024-08-29 05:12:07 UTC
README
在 composer require 之前
- 创建 yaml 配置文件 "rabbit_mq.yaml"
rabbit_mq:
default_connection: default
connections:
default:
host: '%env(RABBITMQ_HOST)%'
port: '%env(RABBITMQ_PORT)%'
login: '%env(RABBITMQ_LOGIN)%'
password: '%env(RABBITMQ_PASS)%'
vhost: '%env(RABBITMQ_VHOST)%'
- 配置 .env 文件
RABBITMQ_HOST=127.0.0.1
RABBITMQ_PORT=5672
RABBITMQ_LOGIN=guest
RABBITMQ_PASS=guest
RABBITMQ_VHOST=/