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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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