zapheus/slytherin-bridge

Slytherin Integration bridge for Zapheus framework.

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

This package is auto-updated.

Last update: 2024-10-25 23:41:38 UTC


README

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

Converts Slytherin Integrations to Zapheus providers.

Installation

Install Slytherin Bridge via Composer:

$ composer require zapheus/slytherin-bridge

Basic Usage

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

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Credits

License

The MIT License (MIT). Please see LICENSE for more information.