yaapi/di

This package is abandoned and no longer maintained. No replacement package was suggested.

YaAPI DI Package

v1.0.2 2015-07-26 02:16 UTC

This package is not auto-updated.

Last update: 2023-03-04 09:01:17 UTC


README

Latest Stable Version Latest Unstable Version License

The Dependency Injection package for YaAPI provides a simple IoC Container for your application. Dependency Injection allows you the developer to control the construction and lifecycle of your objects, rather than leaving that control to the classes themselves. Instead of hard coding a class's dependencies within the class __construct() method, you instead provide to a class the dependencies it requires as arguments to its constructor. This helps to decrease hard dependencies and to create loosely coupled code.

An Inversion of Control (IoC) Container helps you to manage these dependencies in a controlled fashion.

Installation via Composer

Add "yaapi/di": "^1.0.1" to the require block in your composer.json.

{
	"require": {
		"yaapi/di": "^1.0.1"
	}
}

Alternatively, you can simply run the following from the command line:

composer require yaapi/di:^1.0.1