-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinversify.config.ts
33 lines (29 loc) · 1.8 KB
/
inversify.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Container } from "inversify";
import { PostOffice } from "./src/post-office";
import { EmailBroker } from "./src/email/broker/email.broker";
import { SendgridConnecter } from "./src/email/broker/sendgrid/sendgrid.connecter";
import { EmailDepartment } from "./src/email/email.department";
import { EmailReminder } from "./src/email/handlers/reminder/email-reminder";
import { EmailTemplateResolver } from "./src/email/email-template-resolver";
import { SmsDepartment } from "./src/sms/sms.department";
import { SmsHandler } from "./src/sms/handlers/sms.handler";
import { SmsBroker } from "./src/sms/broker/sms.broker";
import { TwilioConnecter } from "./src/sms/broker/twilio/twilio.connecter";
import { EmailGeneric } from "./src/email/handlers/generic/email-generic";
import { EmailReceipt } from "./src/email/handlers/receipt/email-receipt";
import { EmailBooking } from "./src/email/handlers/booking/email-booking";
const inversifyContainer = new Container();
inversifyContainer.bind<PostOffice>(PostOffice).toSelf();
inversifyContainer.bind<EmailBroker>(EmailBroker).toSelf();
inversifyContainer.bind<SendgridConnecter>(SendgridConnecter).toSelf();
inversifyContainer.bind<EmailDepartment>(EmailDepartment).toSelf();
inversifyContainer.bind<EmailReminder>(EmailReminder).toSelf();
inversifyContainer.bind<EmailTemplateResolver>(EmailTemplateResolver).toSelf();
inversifyContainer.bind<EmailGeneric>(EmailGeneric).toSelf();
inversifyContainer.bind<EmailReceipt>(EmailReceipt).toSelf();
inversifyContainer.bind<EmailBooking>(EmailBooking).toSelf();
inversifyContainer.bind<SmsDepartment>(SmsDepartment).toSelf();
inversifyContainer.bind<SmsHandler>(SmsHandler).toSelf();
inversifyContainer.bind<SmsBroker>(SmsBroker).toSelf();
inversifyContainer.bind<TwilioConnecter>(TwilioConnecter).toSelf();
export { inversifyContainer };