Add Dependency Injection example and core interfaces. Implement Inject class for managing scopes and instances, along with InstanceProvider, IntegerConstantProvider, and StringConstantProvider for dependency resolution.

This commit is contained in:
2025-10-25 17:51:44 -04:00
parent 0de4b9314a
commit 00332dc6b1
7 changed files with 212 additions and 0 deletions

3
examples/di-example.ts Normal file
View File

@@ -0,0 +1,3 @@
import {DependencyManager} from '../src';
const dependencyManager = new DependencyManager(async path => await import(path));