services: Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransportFactory: public: true Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransport: factory: [ '@Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransportFactory', 'createTransport' ] arguments: # You may want to store this in a environment variable. # Example: amqp://:@:// $dsn: 'amqp://rabbitmq:rabbitmq@rabbitmq:5672/%2f/messages' # For all available options see https://github.com/symfony/amqp-messenger/blob/6.3/Transport/Connection.php#L38-L65 $options: auto_setup: true # Queue options https://github.com/symfony/amqp-messenger/blob/6.3/Transport/Connection.php#L67-L72 queues: MagicRabbit: flags: 2 # Exchange options: https://github.com/symfony/amqp-messenger/blob/6.3/Transport/Connection.php#L74-L80 exchange: type: fanout tags: - name: 'messenger.sender' identifier: 'amqp' - name: 'messenger.receiver' identifier: 'amqp'