没有传输支持给定的 Messenger DSN

No transport supports the given Messenger DSN

尝试配置 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

所以问题是 symfony messenger 需要 doctrine orm,而我只使用了 symfony dbal。