Компонент для 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

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
<?php
namespace api\emails;
namespace common\emails;
use common\components\EmailRenderer;
use Yii;

View File

@ -1,5 +1,5 @@
<?php
namespace api\emails\exceptions;
namespace common\emails\exceptions;
use Exception;

View File

@ -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',
];
}

View File

@ -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',
];
}

View File

@ -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 {

View File

@ -1,5 +1,5 @@
<?php
namespace api\emails\templates;
namespace common\emails\templates;
class ForgotPasswordParams {

View File

@ -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 {

View File

@ -1,5 +1,5 @@
<?php
namespace api\emails\templates;
namespace common\emails\templates;
class RegistrationEmailParams {