zapheus/silex-bridge

Silex Service Provider bridge for Zapheus framework.

dev-master / 1.0.x-dev 2018-08-31 13:53 UTC

README

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

Converts Silex Service Providers to Zapheus providers.

Install

Via Composer

$ composer require zapheus/silex-bridge

Usage

use Acme\Providers\AuthServiceProvider;
use Acme\Providers\RoleServiceProvider;
use Zapheus\Bridge\Silex\BridgeProvider;
use Zapheus\Container\Container;

$providers = array(new AuthServiceProvider, new RoleServiceProvider);

$provider = new BridgeProvider((array) $providers);

$container = $provider->register(new Container);

$pimple = $container->get(BridgeProvider::CONTAINER);

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email rougingutib@gmail.com instead of using the issue tracker.

Credits

License

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