Inject WPFunctions to AmazonSES
[MAILPOET-4394]
This commit is contained in:
@@ -57,7 +57,8 @@ class MailerFactory {
|
|||||||
$sender,
|
$sender,
|
||||||
$replyTo,
|
$replyTo,
|
||||||
$returnPath,
|
$returnPath,
|
||||||
new AmazonSESMapper()
|
new AmazonSESMapper(),
|
||||||
|
$this->wp
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case Mailer::METHOD_MAILPOET:
|
case Mailer::METHOD_MAILPOET:
|
||||||
|
@@ -73,7 +73,8 @@ class AmazonSES extends PHPMailerMethod {
|
|||||||
$sender,
|
$sender,
|
||||||
$replyTo,
|
$replyTo,
|
||||||
$returnPath,
|
$returnPath,
|
||||||
AmazonSESMapper $errorMapper
|
AmazonSESMapper $errorMapper,
|
||||||
|
WPFunctions $wp
|
||||||
) {
|
) {
|
||||||
$this->awsAccessKey = $accessKey;
|
$this->awsAccessKey = $accessKey;
|
||||||
$this->awsSecretKey = $secretKey;
|
$this->awsSecretKey = $secretKey;
|
||||||
@@ -93,7 +94,7 @@ class AmazonSES extends PHPMailerMethod {
|
|||||||
$this->date = gmdate('Ymd\THis\Z');
|
$this->date = gmdate('Ymd\THis\Z');
|
||||||
$this->dateWithoutTime = gmdate('Ymd');
|
$this->dateWithoutTime = gmdate('Ymd');
|
||||||
$this->errorMapper = $errorMapper;
|
$this->errorMapper = $errorMapper;
|
||||||
$this->wp = new WPFunctions();
|
$this->wp = $wp;
|
||||||
$this->blacklist = new BlacklistCheck();
|
$this->blacklist = new BlacklistCheck();
|
||||||
$this->mailer = $this->buildMailer();
|
$this->mailer = $this->buildMailer();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user