尝试配置symfony Messenger时,总是会收到错误No transport supports the given Messenger DSN "doctrine://default".
symfony框架:4.3.4
信使:4.3.0
在此应用程序中,仅安装了doctrine-bundle和symfony-messenger。
主义:
doctrine:
dbal:
default_connection: default
connections:
default:
schema_filter: '~^(?!messenger_messages)~'
dbname: sftest
host: 127.0.0.1
port: ~
user: root
password: ~
charset: "UTF8"
driver: 'pdo_mysql'
server_version: '5.7'
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
信使:
framework:
messenger:
transports:
async: doctrine://default
routing:
'App\Entity\Notification': async
答案 0 :(得分:1)
所以问题是symfony Messenger要求使用教义规范,而我只使用symfony dbal。