Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 794 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 794 Bytes

Google Cloud Pub/Sub bundle

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

Receiving messages via push is disabled by default, to activate it, include the needed routes:

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

License

MIT