cedricziel/symfony-messenger-pubsub-bundle

Symfony Messenger Bundle adding Google Cloud Pub/Sub support

dev-main 2021-05-22 13:19 UTC

This package is auto-updated.

Last update: 2022-09-22 16:25:16 UTC


README

This bundle wires cedricziel/messenger-pubsub in a Symfony application.

It enables working Pub/Sub messages through the CLI and via push to an HTTP endpoint.

Installation

composer require cedricziel/symfony-messenger-pubsub-bundle

Configuration

Configure your Symfony Messenger by supplying a valid DSN using the pubsub scheme.

MESSENGER_TRANSPORT_DSN=pubsub://my-google-cloud-project/my-pubsub-topic?subscription=my-subscription

Activate the push routes:

_pubsub_push:
  resource: '@GoogleCloudPubSubMessengerBundle/Resources/config/routes.xml'
  prefix: /

License

MIT