Skip to content

weew/kernel-container-aware

Repository files navigation

Kernel container integration

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.

About

Integration between weew/kernel and weew/container.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages