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

Method getProviderById

packages/core/injector/module.ts:566–570  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

564 }
565
566 public getProviderById<T = any>(id: string): InstanceWrapper<T> | undefined {
567 return Array.from(this._providers.values()).find(
568 item => item.id === id,
569 ) as InstanceWrapper<T>;
570 }
571
572 public getControllerById<T = any>(
573 id: string,

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected