Refactor MetaInfo::getConfirmationMetaInfo() to use Doctrine

This method is used only inside
ConfirmationEmailMailer::sendConfirmationEmail(). So I figured it was
best to refactor it as well to use SubscriberEntity instead of the old
Subscriber model as part of the task to do the same for the
ConfirmationEmailMailer class. I opted for this approach since it was a
straightforward change.

[MAILPOET-3815]
This commit is contained in:
Rodrigo Primo
2021-11-25 14:49:46 -03:00
committed by Veljko V
parent 2e57e87951
commit 1dbedea50f
3 changed files with 7 additions and 8 deletions

View File

@@ -121,7 +121,7 @@ class ConfirmationEmailMailer {
// send email
try {
$extraParams = [
'meta' => $this->mailerMetaInfo->getConfirmationMetaInfo($subscriber),
'meta' => $this->mailerMetaInfo->getConfirmationMetaInfo($subscriberEntity),
];
$result = $this->mailer->send($email, $subscriber, $extraParams);
if ($result['response'] === false) {