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:
3
examples/di-example.ts
Normal file
3
examples/di-example.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import {DependencyManager} from '../src';
|
||||
|
||||
const dependencyManager = new DependencyManager(async path => await import(path));
|
||||
Reference in New Issue
Block a user