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

Method loadProvider

packages/core/injector/injector.ts:276–296  ·  view source on GitHub ↗
(
    wrapper: InstanceWrapper<Injectable>,
    moduleRef: Module,
    resolutionContext: ResolutionContext = { contextId: STATIC_CONTEXT },
  )

Source from the content-addressed store, hash-verified

274 }
275
276 public async loadProvider(
277 wrapper: InstanceWrapper<Injectable>,
278 moduleRef: Module,
279 resolutionContext: ResolutionContext = { contextId: STATIC_CONTEXT },
280 ) {
281 if (this.shouldSkipProviderLoading(wrapper, resolutionContext)) {
282 return;
283 }
284 const providers = moduleRef.providers;
285 await this.loadInstance<Injectable>(
286 wrapper,
287 providers,
288 moduleRef,
289 resolutionContext,
290 );
291 await this.loadEnhancersPerContext(
292 wrapper,
293 resolutionContext.contextId,
294 wrapper,
295 );
296 }
297
298 public applySettlementSignal<T>(
299 instancePerContext: InstancePerContext<T>,

Callers 3

resolveComponentHostMethod · 0.95
injector.spec.tsFile · 0.80

Calls 2

Tested by

no test coverage detected