dhii / di
v0.2-alpha1
2018-04-11 12:44 UTC
Requires
- php: ^5.4 | ^7.0
- dhii/args-list-validation: ^0.1
- dhii/callback-abstract: ^0.1-alpha5
- dhii/container-helper-base: ^0.1-alpha5
- dhii/data-container-abstract: ^0.1-alpha1
- dhii/data-container-base: ^0.1-alpha2
- dhii/data-container-interface: ^0.1 | ^0.2
- dhii/data-object-abstract: ^0.1-alpha1
- dhii/di-abstract: ^0.2-alpha1
- dhii/exception: ^0.1-alpha5
- dhii/i18n-helper-base: ^0.1
- dhii/invocable-base: ^0.1
- dhii/normalization-helper-base: ^0.1
- dhii/validation-base: ^0.2-alpha2
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/exception-interface: ^0.2-alpha3
- dhii/invocable-interface: ^0.1
- dhii/memoize-memory: ^0.2
- dhii/php-cs-fixer-config: ^0.1
- dhii/simple-cache-interface: ^0.1
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- psr/container: ^1.0
- ptrofimov/xpmock: ^1.1
Provides
This package is auto-updated.
Last update: 2019-05-10 11:35:05 UTC
README
详细信息
简单、粒度细、符合标准的依赖注入容器实现。
特性
类
CachingContainer
- 一个简单的容器,解析可调用服务定义并缓存结果,保证每次都返回相同的实例。缓存单独销售。ContainerAwareCachingContainer
- 一个知道另一个容器的容器,可能是父容器。可调用定义在解析时将接收到链中的最顶层父容器。与CompositeContainer
一起使用以实现AbstractBaseContainer
- 存储服务作为内部数据的服务容器的公共功能。AbstractBaseCachingContainer
- 存储已解析服务的服务容器的公共功能。