@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
16 lines (14 loc) • 523 B
text/typescript
import { Provide, Provider, AppendAgent } from '../../../decorators';
import { ProviderInterface } from '../../../interfaces';
import { Application } from '../../../foundation/application';
import { Container } from '../../../container';
import { ScheduleService } from '../../../supports/schedule';
()
()
export class ScheduleProvider implements ProviderInterface {
app: Application = Container.get('app');
(ScheduleService)
schedule() {
return new ScheduleService(this.app);
}
}