Компонент для email'ов перемещён в common

This commit is contained in:
ErickSkrauch
2017-04-24 19:22:24 +03:00
parent c0780736ca
commit 1d5e0ce2c6
15 changed files with 30 additions and 30 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace common\emails\templates;
use common\emails\Template;
class ChangeEmailConfirmCurrentEmail extends Template {
private $key;
public function __construct($to, string $key) {
parent::__construct($to);
$this->key = $key;
}
public function getSubject(): string {
return 'Ely.by Account change E-mail confirmation';
}
/**
* @return string|array
*/
protected function getView() {
return [
'html' => '@api/mails/current-email-confirmation-html',
'text' => '@api/mails/current-email-confirmation-text',
];
}
public function getParams(): array {
return [
'key' => $this->key,
];
}
}