henderjon/chevron-containers
Composer 安装命令:
composer require henderjon/chevron-containers
包简介
an implementation of the registry pattern for fun and profit
README 文档
README
Containers is a simple implementation of a registry pattern. The base container takes values and returns them, the deferred container is built to handle callables, and the reference container is meant to handle maps--wait for it--by reference.
Containers started as a pretty basic set of registry objects because you end up using them everywhere. Deferred, however, ended up making a pretty good simple DI container. But "Deferred" isn't as intuitive as "Di", which is why there is a DiInterface (for typehints) and a ServiceLoader for creating and populating the Di.
Peruse the tests or, if present, the examples directory to see usage.
See packagist for version/installation info.
统计信息
- 总下载量: 170
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-05-19