UserEmailFactory creates a new instance of emails.UserEmailFactory
()
| 1086 | |
| 1087 | // UserEmailFactory creates a new instance of emails.UserEmailFactory |
| 1088 | func (container *Container) UserEmailFactory() (factory emails.UserEmailFactory) { |
| 1089 | container.logger.Debug("creating emails.UserEmailFactory") |
| 1090 | return emails.NewHermesUserEmailFactory(&emails.HermesGeneratorConfig{ |
| 1091 | AppURL: os.Getenv("APP_URL"), |
| 1092 | AppName: os.Getenv("APP_NAME"), |
| 1093 | AppLogoURL: os.Getenv("APP_LOGO_URL"), |
| 1094 | }) |
| 1095 | } |
| 1096 | |
| 1097 | // NotificationEmailFactory creates a new instance of emails.NotificationEmailFactory |
| 1098 | func (container *Container) NotificationEmailFactory() (factory emails.NotificationEmailFactory) { |
no test coverage detected