mindplay / unravel
实现了一个中间件栈,用于模块化解析参数到值
dev-master
2016-08-20 17:03 UTC
Requires
- php: >= 5.4
- container-interop/container-interop: ^1
- mindplay/readable: ^1
Requires (Dev)
- mindplay/testies: dev-master
- phpunit/php-code-coverage: ^2 || ^3
This package is auto-updated.
Last update: 2024-08-25 20:34:54 UTC
README
此库实现了一个中间件栈,用于模块化解析参数到函数、闭包、方法和构造函数。
您可以使用此库在依赖注入容器、Web 框架中的控制器调度器等场景中实现调用者或工厂。
此库提供与任何符合 container-interop 规范的依赖注入容器集成的组件,以解解析器(中间件)的形式,解解析 类型提示 或 参数名称 与容器中的 ID。
用法
非常简单,但最好通过示例来解释 (示例)。