Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony rabbitMQ

# 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
            'AppMessageSmsNotification': async /* path to message is paired with Transport */
Source by symfony.com #
 
PREVIOUS NEXT
Tagged: #symfony #rabbitMQ
ADD COMMENT
Topic
Name
8+6 =