Bridge Google Cloud Pub/Sub with the Symfony messenger component.
Note: Use cedricziel/symfony-messenger-pubsub-bundle for automatic wiring in your Symfony Framework application.
composer require cedricziel/messenger-pubsub
To use the pubsub
transport, you would register the PubSubTransportFactory
through the following configuration:
# config/services.yaml
services:
CedricZiel\Symfony\Messenger\Bridge\GcpPubSub\Transport\PubSubTransportFactory:
tags: [messenger.transport_factory]
Create a concrete transport:
# config/packages/messenger.yaml
framework:
messenger:
transports:
my-pubsub: 'pubsub://...'
Google Cloud Pub/Sub does not support delaying messages, so a DelayStamp
will have no effect.
MIT