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

Method bindGlobalsToImports

packages/core/injector/container.ts:322–326  ·  view source on GitHub ↗
(moduleRef: Module)

Source from the content-addressed store, hash-verified

320 }
321
322 public bindGlobalsToImports(moduleRef: Module) {
323 this.globalModules.forEach(globalModule =>
324 this.bindGlobalModuleToModule(moduleRef, globalModule),
325 );
326 }
327
328 public bindGlobalModuleToModule(target: Module, globalModule: Module) {
329 if (target === globalModule || target === this.internalCoreModule) {

Callers 3

bindGlobalScopeMethod · 0.95
scanForModulesMethod · 0.80
container.spec.tsFile · 0.80

Calls 1

Tested by

no test coverage detected