camspiers / shared-dependency-injection
Shared Dependency Injection
Installs: 1 316
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- symfony/config: ~2.2
- symfony/dependency-injection: ~2.2
- symfony/yaml: ~2.2
Requires (Dev)
- phpunit/phpunit: ~3.7
README
Provides the ability to build a symfony dependency injection container which multiple unrelated module or libraries add their extensions and compiler passes to.
Installation (with composer)
$ composer require camspiers/shared-dependency-injection:~0.2
Usage
use Camspiers\DependencyInjection\SharedContainerFactory; SharedContainerFactory::requireExtensionConfigs(__DIR__ . '/..'); SharedContainerFactory::dumpContainer( $container = SharedContainerFactory::createContainer( array(), __DIR__ . '/services.yml' ), 'SharedContainer', __DIR__ );
Unit testing
shared-dependency-injection/ $ composer install --dev
shared-dependency-injection/ $ vendor/bin/phpunit