mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-31 19:56:36 +08:00
refactor: ioc与系统初始化处理方式调整
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user