yaapi/di
最新稳定版本:v1.0.2
Composer 安装命令:
composer require yaapi/di
包简介
YaAPI DI Package
README 文档
README
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
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1
- 更新时间: 2015-07-17