|
- <?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;
- }
- }
|