Removed ely/email-renderer package and implemented new emails renderer client [skip ci]

This commit is contained in:
ErickSkrauch
2019-06-07 02:16:13 +03:00
parent 7b14b92a10
commit 1bf249030f
23 changed files with 262 additions and 146 deletions

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
namespace common\emails\templates;
use common\emails\Template;

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
namespace common\emails\templates;
use common\emails\Template;

View File

@@ -1,6 +1,9 @@
<?php
declare(strict_types=1);
namespace common\emails\templates;
use common\components\EmailsRenderer\RendererInterface;
use common\emails\TemplateWithRenderer;
class ForgotPasswordEmail extends TemplateWithRenderer {
@@ -10,8 +13,8 @@ class ForgotPasswordEmail extends TemplateWithRenderer {
/**
* @inheritdoc
*/
public function __construct($to, string $locale, ForgotPasswordParams $params) {
TemplateWithRenderer::__construct($to, $locale);
public function __construct($to, string $locale, ForgotPasswordParams $params, RendererInterface $renderer) {
parent::__construct($to, $locale, $renderer);
$this->params = $params;
}

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
namespace common\emails\templates;
class ForgotPasswordParams {

View File

@@ -1,6 +1,9 @@
<?php
declare(strict_types=1);
namespace common\emails\templates;
use common\components\EmailsRenderer\RendererInterface;
use common\emails\TemplateWithRenderer;
class RegistrationEmail extends TemplateWithRenderer {
@@ -10,8 +13,8 @@ class RegistrationEmail extends TemplateWithRenderer {
/**
* @inheritdoc
*/
public function __construct($to, string $locale, RegistrationEmailParams $params) {
TemplateWithRenderer::__construct($to, $locale);
public function __construct($to, string $locale, RegistrationEmailParams $params, RendererInterface $renderer) {
parent::__construct($to, $locale, $renderer);
$this->params = $params;
}

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
namespace common\emails\templates;
class RegistrationEmailParams {