Add logic for resolving route handlers

This commit is contained in:
2021-03-08 11:08:56 -06:00
parent a9ffa771dc
commit 9747d40659
8 changed files with 80 additions and 14 deletions

View File

@@ -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