Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.29 KB

UPGRADE-3.0.md

File metadata and controls

50 lines (35 loc) · 1.29 KB

UPGRADE FROM 2.x to 3.0

Dropped support for Symfony 5.1, 5.2, 5.3

Symfony 5.1, 5.2, 5.3 are not supported.

Upgraded to Google PubSub V2

GpsMessengerBundle 3.0 requires google/cloud-pubsub version 2. It has many BC breaks in the configuration options.

For example, instead of keyFile:

# config/packages/messenger.yaml

framework:
    messenger:
        transports:
            gps_transport:
                dsn: 'gps://default'
                options:
                    client_config:
                        keyFile: '%env(json:base64:GOOGLE_PUBSUB_KEY)%'

you have to use credentials:

# config/packages/messenger.yaml

framework:
    messenger:
        transports:
            gps_transport:
                dsn: 'gps://default'
                options:
                    client_config:
                        credentials: '%env(json:base64:GOOGLE_PUBSUB_KEY)%'

For all other BC breaks, please read: https://github.com/googleapis/google-cloud-php/blob/2a8108caf5065132bb41872cab8a668b5d4e6bdc/PubSub/MIGRATING.md

Removed option queue

The option queue was removed. Please use subscription instead.

Removed option max_messages_pull

The option max_messages_pull was removed, use option subscription.pull.maxMessages instead.