mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Компонент для email'ов перемещён в common
This commit is contained in:
35
common/emails/templates/ChangeEmailConfirmCurrentEmail.php
Normal file
35
common/emails/templates/ChangeEmailConfirmCurrentEmail.php
Normal 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,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user