symfony rabbitMQ

106

# config/packages/messenger.yaml
framework:
    messenger:
        transports:
            async: "%env(MESSENGER_TRANSPORT_DSN)%" /* Variable defined in .env */

        routing:
            # async is whatever name you gave your transport above
            'App\Message\SmsNotification': async /* path to message is paired with Transport */

Comments

Submit
0 Comments