import { Application } from 'egg' ; import { AppPluginBase } from '../../basic/AppPluginBase' ; import PromiseHandler from './promise-handler' ; import { PHConfig } from './ph-config' ; export class AppPHManager extends AppPluginBase < any > { private promiseHandler : PromiseHandler ; constructor ( config , app ) { super ( config , app ) ; this . promiseHandler = new PromiseHandler ( config ) ; } public async onReady ( ) { } public async onStart ( ) { } public async onClose ( ) { } public getPromiseHandler ( ) { return this . promiseHandler ; } }