fusible/aura-provider

Providers for Aura\Di

0.1.0 2019-05-06 12:20 UTC

README

Service Providers for Aura\Di

Installation

composer require fusible/aura-provider

Usage

See: Aura\Di > Container Builder and Config Classes .

use Aura\Di\ContainerBuilder;
use Fusible\AuraProvider\ProviderConfig;


// Some providers implementing ServiceProviderInterface
$providers = [
    MyServiceProvider::class,
    OtherServiceProvider::class,
    new SomeServiceProvider($someConfig)
];

$builder = new ContainerBuilder();
$di = $builder->newConfiguredInstance(
    [new ProviderConfig($providers)]
);