You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
894B

  1. <?php
  2. namespace domain\Communication\Email;
  3. use common\components\BulkMailer\BulkMailerInterface;
  4. use domain\_\AbstractService;
  5. class EmailModule extends AbstractService
  6. {
  7. public function getEntityFqcn(): string
  8. {
  9. return '';
  10. }
  11. public function getServices(): array
  12. {
  13. return [
  14. EmailBuilder::class,
  15. ContactListResolver::class,
  16. EmailGenerator::class,
  17. ];
  18. }
  19. public function getBuilder(): EmailBuilder
  20. {
  21. return EmailBuilder::getInstance();
  22. }
  23. public function getGenerator(): EmailGenerator
  24. {
  25. return EmailGenerator::getInstance();
  26. }
  27. public function getContactListResolver(): ContactListResolver
  28. {
  29. return ContactListResolver::getInstance();
  30. }
  31. public function getBulkMailer(): BulkMailerInterface
  32. {
  33. return \Yii::$app->bulkMailer;
  34. }
  35. }