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

Method getInstanceWrapper

packages/core/scanner.ts:670–678  ·  view source on GitHub ↗
(
      moduleKey: string,
      providerKey: string,
      collectionKey: 'providers' | 'injectables',
    )

Source from the content-addressed store, hash-verified

668 const applyRequestProvidersMap = this.getApplyRequestProvidersMap();
669
670 const getInstanceWrapper = (
671 moduleKey: string,
672 providerKey: string,
673 collectionKey: 'providers' | 'injectables',
674 ) => {
675 const modules = this.container.getModules();
676 const collection = modules.get(moduleKey)![collectionKey];
677 return collection.get(providerKey);
678 };
679
680 // Add global enhancers to the application config
681 this.applicationProvidersApplyMap.forEach(

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
getModulesMethod · 0.45

Tested by

no test coverage detected