Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony messenger transport

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