weew / eventer-container-aware
Container integration for the weew/eventer package.
v2.2.2
2016-07-21 13:05 UTC
Requires
- weew/container: ^1.0.0
- weew/eventer: ^2.0
Requires (Dev)
- phpunit/phpunit: ^4.7
- satooshi/php-coveralls: ^0.6.1
README
Table of contents
Installation
composer require weew/eventer-container-aware
Introduction
This package integrates weew/eventer with weew/container and allows subscribers to rely on dependency injection and sharing of data trough the container.
Usage
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());