2017 © Pedro Peláez
 

library pimple-serviceaware-eventdispatcher

Eventdispatcher which knows pimple services

image

frankhildebrandt/pimple-serviceaware-eventdispatcher

Eventdispatcher which knows pimple services

  • Tuesday, April 14, 2015
  • by frankhildebrandt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,845 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

PimpleAwareEventDispatcher

The PimpleAwareEventDispatcher extends the original Symfony2 EventDispatcher with the ability to consume Pimple Services as EventListener. This gives your application the ability to lazy-instantiate its EventListeners., (*1)

Usage

use Fhild\Pimple\EventDispatcher\PimpleAwareEventDispatcher

$container = new Container();
$container['someservice'] = function() {
    return new SomeService();
};

$dispatcher = new PimpleAwareEventDispatcher($container);
$dispatcher->addListener("my.event", "someservice:onTest");

$event = $dispatcher->dispatch("my.event");

The Versions

14/04 2015

dev-master

9999999-dev

Eventdispatcher which knows pimple services

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

23/08 2014

0.1.0

0.1.0.0

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires