Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony messenger config

# 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 #messenger #config
ADD COMMENT
Topic
Name
6+6 =