This commit is contained in:
2025-10-11 12:05:57 +08:00
parent 45ec0fd021
commit 8d25c143c5
7 changed files with 437 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import { ServiceRegistry, ServiceIds } from './ServiceRegistry'
import type { IServiceContainer } from './IServiceContainer'
import { initializePendingServices } from './decorators'
/**
* 服务提供者
@@ -23,6 +24,9 @@ export class ServiceProvider {
this.container = registry.getContainer()
this.container.initialize()
// 初始化所有使用@Service装饰器的服务
initializePendingServices()
this.initialized = true
}