composer require weew/eventer-container-aware
This package integrates weew/eventer with weew/container and allows subscribers to rely on dependency injection and sharing of data trough the container.
Simply create a new instance of the container aware Eventer
and pass in an instance of IContainer
.
$kernel = new Weew\Events\ContainerAware\Eventer(new Container());