zapheus / slytherin-bridge
Slytherin 集成桥接器,用于 Zapheus 框架。
v0.1.0
2018-05-18 03:46 UTC
Requires
- php: >=5.3.0
- rougin/slytherin: ~0.9
- zapheus/zapheus: ~0.1
Requires (Dev)
- phpunit/phpunit: ~4.2|~5.7
- scrutinizer/ocular: ~1.1.0
This package is auto-updated.
Last update: 2024-09-25 23:30:39 UTC
README
将 Slytherin 集成转换为 Zapheus 提供者。
安装
通过 Composer 安装 Slytherin Bridge
$ composer require zapheus/slytherin-bridge
基本用法
use Acme\Integrations\AuthIntegration; use Acme\Integrations\RoleIntegration; use Rougin\Slytherin\Container\Container; use Zapheus\Bridge\Slytherin\BridgeProvider; use Zapheus\Container\Container; $providers = array(new AuthIntegration, new RoleIntegration); $provider = new BridgeProvider($providers); $container = $provider->register(new Container); $slytherin = $container->get(BridgeProvider::CONTAINER);
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
测试
$ composer test
致谢
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 LICENSE。