Add logic for resolving route handlers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Application} from './Application';
|
||||
import {Container} from "@extollo/di";
|
||||
import {Container, DependencyKey} from "@extollo/di";
|
||||
|
||||
/**
|
||||
* Base type for a class that supports binding methods by string.
|
||||
@@ -37,6 +37,10 @@ export class AppClass {
|
||||
return this.appClassApplication;
|
||||
}
|
||||
|
||||
protected make<T>(target: DependencyKey, ...parameters: any[]): T {
|
||||
return this.container().make<T>(target, ...parameters)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the method with the given name from this class, bound to this class.
|
||||
* @param {string} methodName
|
||||
|
||||
Reference in New Issue
Block a user