refactor: ioc与系统初始化处理方式调整

This commit is contained in:
meilin.huang
2024-01-22 11:35:28 +08:00
parent de5b9e46d3
commit 9efd20f1b9
26 changed files with 257 additions and 55 deletions

View File

@@ -18,3 +18,8 @@ func Get[T any](name string) T {
func Inject(component any) error {
return DefaultContainer.Inject(component)
}
// 注入默认ioc容器内组件所依赖的其他组件实例
func InjectComponents() error {
return DefaultContainer.InjectComponents()
}