Removed ely/email-renderer package and implemented new emails renderer client [skip ci]

This commit is contained in:
ErickSkrauch
2019-06-07 02:16:13 +03:00
parent 7b14b92a10
commit 1bf249030f
23 changed files with 262 additions and 146 deletions

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
namespace common\emails;
use common\emails\exceptions\CannotSendEmailException;
@@ -20,7 +22,8 @@ abstract class Template {
private $to;
/**
* @param string|array $to получатель письма. Задаётся как Email или как массив [email => name]
* @param string|array $to message receiver. Can be passed as string (pure email)
* or as an array [email => user's name]
*/
public function __construct($to) {
$this->mailer = Yii::$app->mailer;