fusible / aura-provider
Providers for Aura\Di
0.1.0
2019-05-06 12:20 UTC
Requires
- aura/di: ^3.4
- container-interop/service-provider: ^0.4.0
Requires (Dev)
- pds/skeleton: ^1.0
- phpstan/phpstan: ^0.11.5
- phpunit/phpunit: ^8.1
This package is auto-updated.
Last update: 2024-11-07 01:39:02 UTC
README
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)] );