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

Method getApplyProvidersMap

packages/core/scanner.ts:705–716  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

703 }
704
705 public getApplyProvidersMap(): { [type: string]: Function } {
706 return {
707 [APP_INTERCEPTOR]: (interceptor: NestInterceptor) =>
708 this.applicationConfig.addGlobalInterceptor(interceptor),
709 [APP_PIPE]: (pipe: PipeTransform) =>
710 this.applicationConfig.addGlobalPipe(pipe),
711 [APP_GUARD]: (guard: CanActivate) =>
712 this.applicationConfig.addGlobalGuard(guard),
713 [APP_FILTER]: (filter: ExceptionFilter) =>
714 this.applicationConfig.addGlobalFilter(filter),
715 };
716 }
717
718 public getApplyRequestProvidersMap(): { [type: string]: Function } {
719 return {

Callers 3

insertProviderMethod · 0.95
scanner.spec.tsFile · 0.80

Calls 4

addGlobalInterceptorMethod · 0.80
addGlobalPipeMethod · 0.80
addGlobalGuardMethod · 0.80
addGlobalFilterMethod · 0.80

Tested by

no test coverage detected