dekalee/pubsub-swarrot-bundle

用于swarrot的pubsub适配器的包

v1.0.0 2019-11-26 10:59 UTC

This package is auto-updated.

Last update: 2024-08-26 21:22:32 UTC


README

Scrutinizer Code Quality Latest Stable Version Total Downloads License

此包将封装swarrot-pubsub库。

它将提供一种在使用SwarrotBundle的同时使用pubsub提供者的方式。

安装

使用composer安装此包

    composer require dekalee/pubsub-swarrot-bundle

AppKernel.php文件中激活它

    new Dekalee\PubSubSwarrotBundle\DekaleePubSubSwarrotBundle(),

配置

在你的config.yml文件中,你应该将提供者设置为pubsub并指定连接

    swarrot:
        provider: pub_sub
        default_connection: pub_sub
        connections:
            pub_sub:
                host: 'noneRequired'

使用

你可以像以前一样直接使用你的队列系统