dev-master
9999999-devEventdispatcher which knows pimple services
BSD-3-Clause
The Requires
The Development Requires
0.1.0
0.1.0.0
BSD-3-Clause
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Eventdispatcher which knows pimple services
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)
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");
Eventdispatcher which knows pimple services
BSD-3-Clause
BSD-3-Clause