@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
18 lines (15 loc) • 390 B
text/typescript
import { Provide, Provider, AppendAgent } from '../../../decorators';
import { Mailer } from '../../../supports/mailer';
import { Application } from '../../../foundation/application';
()
()
export class MailerProvider{
(Mailer)
mailer() {
return new Mailer();
}
('mail')
mailerAlias(app: Application) {
return app.get(Mailer);
}
}