Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1000 Bytes

File metadata and controls

40 lines (27 loc) · 1000 Bytes

Symfony Messenger Bridge for Google Cloud Pub/Sub

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.

Installation

composer require cedricziel/messenger-pubsub

Usage

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://...'

Notable

Google Cloud Pub/Sub does not support delaying messages, so a DelayStamp will have no effect.

License

MIT