hanaboso/rabbit-mq-bundle

1.3.6 2020-01-20 15:58 UTC

This package is auto-updated.

Last update: 2020-01-21 17:18:04 UTC


README

Build Status Coverage Status Downloads

Installation

  • Download package via composer
composer require hanaboso/rabbit-mq-bundle

Logger

  • default stdout logger - monolog.logger.rabbit_mq

Config

rabbit_mq:
    logger: 'monolog.logger.rabbit_mq'
    connections:
        default:
            dsn: amqp://rabbitmq:5672/

    queues:
        my-queue:
            arguments:
                my-arg: 'my-value'
            bindings:
                - exchange: 'my-exchange'
                  routing_key: 'routing-key'
                  arguments:
                    my-arg: 'my-value'

    exchanges:
        my-exchange:
            type: 'direct'
            passive: false
            durable: false
            auto_delete: false
            internal: false
            no_wait: false
            arguments:
                my-arg: 'my-value'
            bindings:
               - exchange: 'my-exchange'
                 routing-key: 'routing-key'
                 arguments:
                    my-arg: 'my-value'

    publishers:
       my-publisher:
            routing_key: 'routing-key' # queue name or routing key
            exchange: 'my-exchange'

    consumers:
        my-consumer:
            queue: 'my-queue'
            callback: rabbit_mq.null_callback