mirror of
https://github.com/elyby/accounts.git
synced 2024-12-02 11:41:05 +05:30
Компонент для email'ов перемещён в common
This commit is contained in:
parent
c0780736ca
commit
1d5e0ce2c6
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\models\authentication;
|
namespace api\models\authentication;
|
||||||
|
|
||||||
use api\emails\EmailHelper;
|
use common\emails\EmailHelper;
|
||||||
use api\models\base\ApiForm;
|
use api\models\base\ApiForm;
|
||||||
use api\validators\TotpValidator;
|
use api\validators\TotpValidator;
|
||||||
use common\helpers\Error as E;
|
use common\helpers\Error as E;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
namespace api\models\authentication;
|
namespace api\models\authentication;
|
||||||
|
|
||||||
use api\components\ReCaptcha\Validator as ReCaptchaValidator;
|
use api\components\ReCaptcha\Validator as ReCaptchaValidator;
|
||||||
use api\emails\EmailHelper;
|
use common\emails\EmailHelper;
|
||||||
use api\models\base\ApiForm;
|
use api\models\base\ApiForm;
|
||||||
use common\helpers\Error as E;
|
use common\helpers\Error as E;
|
||||||
use common\components\UserFriendlyRandomKey;
|
use common\components\UserFriendlyRandomKey;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
namespace api\models\authentication;
|
namespace api\models\authentication;
|
||||||
|
|
||||||
use api\components\ReCaptcha\Validator as ReCaptchaValidator;
|
use api\components\ReCaptcha\Validator as ReCaptchaValidator;
|
||||||
use api\emails\EmailHelper;
|
use common\emails\EmailHelper;
|
||||||
use api\models\base\ApiForm;
|
use api\models\base\ApiForm;
|
||||||
use common\helpers\Error as E;
|
use common\helpers\Error as E;
|
||||||
use common\components\UserFriendlyRandomKey;
|
use common\components\UserFriendlyRandomKey;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\models\profile\ChangeEmail;
|
namespace api\models\profile\ChangeEmail;
|
||||||
|
|
||||||
use api\emails\EmailHelper;
|
use common\emails\EmailHelper;
|
||||||
use api\models\base\ApiForm;
|
use api\models\base\ApiForm;
|
||||||
use api\validators\PasswordRequiredValidator;
|
use api\validators\PasswordRequiredValidator;
|
||||||
use common\helpers\Error as E;
|
use common\helpers\Error as E;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\models\profile\ChangeEmail;
|
namespace api\models\profile\ChangeEmail;
|
||||||
|
|
||||||
use api\emails\EmailHelper;
|
use common\emails\EmailHelper;
|
||||||
use api\models\base\ApiForm;
|
use api\models\base\ApiForm;
|
||||||
use api\validators\EmailActivationKeyValidator;
|
use api\validators\EmailActivationKeyValidator;
|
||||||
use common\models\Account;
|
use common\models\Account;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails;
|
namespace common\emails;
|
||||||
|
|
||||||
use api\emails\templates\ChangeEmailConfirmCurrentEmail;
|
use common\emails\templates\ChangeEmailConfirmCurrentEmail;
|
||||||
use api\emails\templates\ChangeEmailConfirmNewEmail;
|
use common\emails\templates\ChangeEmailConfirmNewEmail;
|
||||||
use api\emails\templates\ForgotPasswordEmail;
|
use common\emails\templates\ForgotPasswordEmail;
|
||||||
use api\emails\templates\ForgotPasswordParams;
|
use common\emails\templates\ForgotPasswordParams;
|
||||||
use api\emails\templates\RegistrationEmail;
|
use common\emails\templates\RegistrationEmail;
|
||||||
use api\emails\templates\RegistrationEmailParams;
|
use common\emails\templates\RegistrationEmailParams;
|
||||||
use common\models\Account;
|
use common\models\Account;
|
||||||
use common\models\confirmations\CurrentEmailConfirmation;
|
use common\models\confirmations\CurrentEmailConfirmation;
|
||||||
use common\models\confirmations\ForgotPassword;
|
use common\models\confirmations\ForgotPassword;
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails;
|
namespace common\emails;
|
||||||
|
|
||||||
use api\emails\exceptions\CannotSendEmailException;
|
use common\emails\exceptions\CannotSendEmailException;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\mail\MailerInterface;
|
use yii\mail\MailerInterface;
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails;
|
namespace common\emails;
|
||||||
|
|
||||||
use common\components\EmailRenderer;
|
use common\components\EmailRenderer;
|
||||||
use Yii;
|
use Yii;
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\exceptions;
|
namespace common\emails\exceptions;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\templates;
|
namespace common\emails\templates;
|
||||||
|
|
||||||
use api\emails\Template;
|
use common\emails\Template;
|
||||||
|
|
||||||
class ChangeEmailConfirmCurrentEmail extends Template {
|
class ChangeEmailConfirmCurrentEmail extends Template {
|
||||||
|
|
||||||
@ -21,8 +21,8 @@ class ChangeEmailConfirmCurrentEmail extends Template {
|
|||||||
*/
|
*/
|
||||||
protected function getView() {
|
protected function getView() {
|
||||||
return [
|
return [
|
||||||
'html' => '@app/mails/current-email-confirmation-html',
|
'html' => '@api/mails/current-email-confirmation-html',
|
||||||
'text' => '@app/mails/current-email-confirmation-text',
|
'text' => '@api/mails/current-email-confirmation-text',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\templates;
|
namespace common\emails\templates;
|
||||||
|
|
||||||
use api\emails\Template;
|
use common\emails\Template;
|
||||||
|
|
||||||
class ChangeEmailConfirmNewEmail extends Template {
|
class ChangeEmailConfirmNewEmail extends Template {
|
||||||
|
|
||||||
@ -24,8 +24,8 @@ class ChangeEmailConfirmNewEmail extends Template {
|
|||||||
*/
|
*/
|
||||||
protected function getView() {
|
protected function getView() {
|
||||||
return [
|
return [
|
||||||
'html' => '@app/mails/new-email-confirmation-html',
|
'html' => '@api/mails/new-email-confirmation-html',
|
||||||
'text' => '@app/mails/new-email-confirmation-text',
|
'text' => '@api/mails/new-email-confirmation-text',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\templates;
|
namespace common\emails\templates;
|
||||||
|
|
||||||
use api\emails\TemplateWithRenderer;
|
use common\emails\TemplateWithRenderer;
|
||||||
|
|
||||||
class ForgotPasswordEmail extends TemplateWithRenderer {
|
class ForgotPasswordEmail extends TemplateWithRenderer {
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\templates;
|
namespace common\emails\templates;
|
||||||
|
|
||||||
class ForgotPasswordParams {
|
class ForgotPasswordParams {
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\templates;
|
namespace common\emails\templates;
|
||||||
|
|
||||||
use api\emails\TemplateWithRenderer;
|
use common\emails\TemplateWithRenderer;
|
||||||
|
|
||||||
class RegistrationEmail extends TemplateWithRenderer {
|
class RegistrationEmail extends TemplateWithRenderer {
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace api\emails\templates;
|
namespace common\emails\templates;
|
||||||
|
|
||||||
class RegistrationEmailParams {
|
class RegistrationEmailParams {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user