phpactor/container
最新稳定版本:3.0.1
Composer 安装命令:
composer require phpactor/container
包简介
Phpactor's DI Container
README 文档
README
Phpactor's minimal PSR-compliant dependency injection container, featuring tags and parameters
$container = new PhpactorContainer([ 'param1' => 'value1', 'param2' => 'value2', // ... ]); $container->register('Foobar', function (Container $container) { return new MyClass( $container->get(SomeOtherClass::class), $container->getParameter('param1') ); };
Contributing
This package is open source and welcomes contributions! Feel free to open a pull request on this repository.
Support
- Create an issue on the main Phpactor repository.
- Join the
#phpactorchannel on the Slack Symfony Devs channel.
统计信息
- 总下载量: 470.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 38
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-25