weew/kernel-container-aware

Integration between weew/kernel and weew/container.

v2.3.1 2016-07-21 11:18 UTC

This package is not auto-updated.

Last update: 2024-11-19 23:41:03 UTC


README

Build Status Code Quality Test Coverage Version Licence

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.