zapheus/silex-bridge

Silex Service Provider bridge for Zapheus framework.

dev-master / 1.0.x-dev 2018-01-19 02:42 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\Provider;
use Zapheus\Container\Container;
use Zapheus\Provider\FrameworkProvider;

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

$provider = new Provider($providers);

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

$framework = new FrameworkProvider;

$container = $framework->register($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.