Skip to content

Instantly share code, notes, and snippets.

@lahaxearnaud
Last active November 9, 2018 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lahaxearnaud/a72d12feae30abd0ddb75bc0d91e6450 to your computer and use it in GitHub Desktop.
Save lahaxearnaud/a72d12feae30abd0ddb75bc0d91e6450 to your computer and use it in GitHub Desktop.
parameters:
messenger.transport.default_serialization_context: {groups: [messenger]}
framework:
messenger:
transports:
# les Data Source Name pour mes différents transports
amqp_mailer: '%env(MESSENGER_TRANSPORT_DSN_MAILER)%'
amqp_default: '%env(MESSENGER_TRANSPORT_DSN)%'
routing:
# En fonction du type de message on peut router le message
# pour ma part j'utilise des interface
'App\Message\Interfaces\Mailer': amqp_mailer
# Tout ce qui n'a pas matché avance passera ici
'*': amqp_default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment