2017 © Pedro Peláez
 

symfony-bundle eventhub-bundle

EventHubBundle is an EventBundle integration bundle for Symfony.

image

mcadare/eventhub-bundle

EventHubBundle is an EventBundle integration bundle for Symfony.

  • Tuesday, July 28, 2015
  • by mcadare
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

EventHubBundle

EventHubBundle is an EventBundle integration bundle for Symfony., (*1)

It gives you the possibilty to declare events to listen to via your symfony config and configure downstream events to fire like so:, (*2)

event_hub:
    order.create:               #business event
        mail:                   
            Valid: 'ORDER_CONFIRMATION'
        flash:                  
            Valid:
                level: success
                code: 'MSG_ORDER_AJOUT_OK'
            Invalid:
                level: danger
                code: 'MSG_ORDER_AJOUT_KO'
            Pending:
                code: 'MSG_ORDER_AJOUT_ATTENTE'

In this example, when the custom "order.create" event is fired, depending on the status of the event, a mail and/or a flash message will be triggered (with the corresponding parameters). The aftermath is way less dependencies between business and application logic., (*3)

NB: Some dependencies are required in order to catch the fired events. see FlashMessageHandlerBundle for Example, (*4)

The Versions

28/07 2015

dev-master

9999999-dev http://github.com/mcadare/EventHubBundle

EventHubBundle is an EventBundle integration bundle for Symfony.

  Sources   Download

MIT

The Requires

 

by Meven

events symfony2