composer require weew/kernel-container-aware
This package integrates weew/kernel with weew/container and allows providers to rely on dependency injection and sharing of data trough the container.
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.