weew / kernel-container-aware
Integration between weew/kernel and weew/container.
v2.3.1
2016-07-21 11:18 UTC
Requires
- weew/container: ^1.2
- weew/kernel: ^2.1
Requires (Dev)
- phpunit/phpunit: ^4.7
- satooshi/php-coveralls: ^0.6.1
README
Table of contents
Installation
composer require weew/kernel-container-aware
Introduction
This package integrates weew/kernel with weew/container and allows providers to rely on dependency injection and sharing of data trough the container.
Usage
To create a container aware Kernel
simply pass in an instance of IContainer
.
$kernel = new Weew\Kernel\ContainerAware\Kernel(new Container());
Note: Kernel will automatically share instances of providers in the container.