2017 © Pedro Peláez
 

library message-bus-receiver

WakeOnWeb MessageBus receiver

image

wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  • Tuesday, June 26, 2018
  • by steph_py
  • Repository
  • 2 Watchers
  • 0 Stars
  • 312 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 118 % Grown

The README.md

WakeOnWeb MessageBusReceiver

Installation

composer.json, (*1)

    "wakeonweb/message-bus-receiver": "^0.1"

If you use Symfony, you can load the bundle WakeOnWeb\MessageBusReceiver\App\Bundle\WakeonwebMessageBusReceiverBundle., (*2)

Usage

Amqp Input

wakeonweb_message_bus_receiver:
    buses:
        my_event_bus:
            bus: my_event_bus
            inputs:
                amqp:
                    message_name: EventBusExternalMessage
                    move_to_error_queue_on_error: false
            message_factory:
                mapping:
                    user_created: App\Event\UserCreatedEvent
                    foo: @id_service

Then in your prooph event bus definition:, (*3)

prooph_service_bus:
  event_buses:
    my_event_bus:
        message_factory: wow.message_bus_receiver.my_event_bus.message_factory

Define the bus where messages will be trigerred once catched., (*4)

Controller Route Input

wakeonweb_message_bus_receiver:
    buses:
        my_event_bus:
            bus: my_event_bus
            inputs:
                controller_route: ~
            message_factory:
                mapping:
                    user_created: App\Event\UserCreatedEvent
                    foo: @id_service

Then in your routing:, (*5)

my_incoming_events:
    path: /incoming/events
    defaults: { _controller: 'wakeonweb.message_bus_receiver.my_event_bus.route_input:indexAction' }
    methods: [POST]

/!\ Supports only json body at this moment /!\, (*6)

The Versions

26/06 2018

dev-master

9999999-dev https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

MIT Private

The Requires

 

message-bus

26/06 2018

0.5.0

0.5.0.0 https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

MIT

The Requires

 

message-bus

19/04 2018

0.4.0

0.4.0.0 https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

Private

The Requires

 

message-bus

17/01 2018

0.3.1

0.3.1.0 https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

Private

The Requires

 

message-bus

12/01 2018

dev-feature/json_last_error

dev-feature/json_last_error https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

Private

The Requires

 

message-bus

12/01 2018

0.3.0

0.3.0.0 https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

Private

The Requires

 

message-bus

08/01 2018

v0.2.0

0.2.0.0 https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

Private

The Requires

 

message-bus

08/01 2018

v0.1.0

0.1.0.0 https://github.com/wakeonweb/message-bus-receiver

WakeOnWeb MessageBus receiver

  Sources   Download

Private

The Requires

 

message-bus