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