alireaza/dependency-injection

The Dependency Injection Container.

1.2.0 2022-03-05 00:54 UTC

This package is auto-updated.

Last update: 2024-12-05 07:02:24 UTC


README

Install

Via Composer

$ composer require alireaza/dependency-injection

Usage

use AliReaza\DependencyInjection\DependencyInjectionContainer;

$dic = new DependencyInjectionContainer();

$dic->useAutowiring(true);

$alireaza_birthday = $dic->resolve(DateTime::class, [
    '$datetime' => '1992-10-27 10:15:00'
]);

License

The MIT License (MIT). Please see License File for more information.