* Calls the `onModuleInit` function on the registered * modules and its children.
()
| 420 | * modules and its children. |
| 421 | */ |
| 422 | protected async callInitHook(): Promise<void> { |
| 423 | const modulesSortedByDistance = this.getModulesToTriggerHooksOn(); |
| 424 | for (const module of modulesSortedByDistance) { |
| 425 | await callModuleInitHook(module); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | /** |
| 430 | * Calls the `onModuleDestroy` function on the registered |
no test coverage detected