zapheus/slytherin-bridge

Slytherin 集成桥接器,用于 Zapheus 框架。

v0.1.0 2018-05-18 03:46 UTC

This package is auto-updated.

Last update: 2024-09-25 23:30:39 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

将 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