Dependency injection library built for Antidot Framework respecting PSR-11 standard
Can be used together with Antidot Framework or as a standalone piece for your application or customized framework
Via Composer
$ composer require antidot-fw/container:dev-master
<?php
declare(strict_types=1);
use Antidot\Container\Builder;
$container = Builder::build([
'config' => [],
'parameters' => [],
'services' => [
'some.service' => Some::class,
],
], true);
if ($container->has('some.service')) {
$service = $container->get('some.service');
}
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.