TypeDoc all the thngs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user