We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7268e1 + fece41a commit 910e089Copy full SHA for 910e089
1 file changed
src/core/nest-application-context.ts
@@ -26,11 +26,11 @@ export class NestApplicationContext implements INestApplicationContext {
26
: null;
27
}
28
29
- public get<T>(metatypeOrToken: Metatype<T> | string): T {
+ public get<T>(metatypeOrToken: Metatype<T> | string | symbol): T {
30
return this.findInstanceByPrototypeOrToken<T>(metatypeOrToken);
31
32
33
- private findInstanceByPrototypeOrToken<T>(metatypeOrToken: Metatype<T> | string) {
+ private findInstanceByPrototypeOrToken<T>(metatypeOrToken: Metatype<T> | string | symbol) {
34
const dependencies = new Map([
35
...this.contextModule.components,
36
...this.contextModule.routes,
0 commit comments