TypeDoc all the thngs

This commit is contained in:
2021-03-25 08:50:13 -05:00
parent 7cb0546b01
commit fad1184afe
52 changed files with 976 additions and 3 deletions

View File

@@ -22,21 +22,28 @@ export function isBindable(what: any): what is Bindable {
)
}
/**
* Base for classes that gives access to the global application and container.
*/
export class AppClass {
/** The global application instance. */
private readonly appClassApplication!: Application;
constructor() {
this.appClassApplication = Application.getApplication();
}
/** Get the global Application. */
protected app(): Application {
return this.appClassApplication;
}
/** Get the global Container. */
protected container(): Container {
return this.appClassApplication;
}
/** Call the `make()` method on the global container. */
protected make<T>(target: DependencyKey, ...parameters: any[]): T {
return this.container().make<T>(target, ...parameters)
}