Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Innmind/EventBusBundle

Repository files navigation

EventBusBundle

master develop
Scrutinizer Code Quality Scrutinizer Code Quality
Code Coverage Code Coverage
Build Status Build Status

Symfony integration of innmind/event-bus that ease stacking event buses.

Installation

composer require innmind/event-bus-bundle

In your AppKernel.php add the following line:

//app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Innmind\EventBusBundle\InnmindEventBusBundle,
        );
        // ...
    }
    // ...
}

Usage

$container->get('innmind_event_bus')->dispatch(new MyEvent);

In order to dispatch your events you need to define the listeners as services with the tag innmind_event_bus.listener with the attribte listen_to that will contain the command FQCN.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages