|
12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
-
- namespace domain\Communication\Email;
-
- use common\components\BulkMailer\BulkMailerInterface;
- use domain\_\AbstractService;
-
- class EmailModule extends AbstractService
- {
- public function getEntityFqcn(): string
- {
- return '';
- }
-
- public function getServices(): array
- {
- return [
- EmailBuilder::class,
- ContactListResolver::class,
- EmailGenerator::class,
- ];
- }
-
- public function getBuilder(): EmailBuilder
- {
- return EmailBuilder::getInstance();
- }
-
- public function getGenerator(): EmailGenerator
- {
- return EmailGenerator::getInstance();
- }
-
- public function getContactListResolver(): ContactListResolver
- {
- return ContactListResolver::getInstance();
- }
-
- public function getBulkMailer(): BulkMailerInterface
- {
- return \Yii::$app->bulkMailer;
- }
- }
|