MCPcopy
hub / github.com/nestjs/nest / callInitHook

Method callInitHook

packages/core/nest-application-context.ts:422–427  ·  view source on GitHub ↗

* Calls the `onModuleInit` function on the registered * modules and its children.

()

Source from the content-addressed store, hash-verified

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

Callers 3

initMethod · 0.95
initMethod · 0.80
registerModulesMethod · 0.80

Calls 2

callModuleInitHookFunction · 0.90

Tested by

no test coverage detected