Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony messenger conf

# 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 #conf
ADD COMMENT
Topic
Name
9+2 =