Manager/SubscriberManager.php 1 location
|
@@ 91-95 (lines=5) @@
|
| 88 |
|
public function unsubscribe(Subscriber $subscriber) |
| 89 |
|
{ |
| 90 |
|
$result = $this->subscriberWebService->Unsubscribe(new Unsubscribe($subscriber->getId(), null, null)); |
| 91 |
|
if (true === $result->getUnsubscribeResult()) { |
| 92 |
|
$this->logger->info('Subscriber successfully unsubscribed', ['id' => $subscriber->getId()]); |
| 93 |
|
} else { |
| 94 |
|
$this->logger->error('An error occurred while unsubscribing subscriber', ['id' => $subscriber->getId(), 'response' => $result->getUnsubscribeResult()]); |
| 95 |
|
} |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
Manager/MessageManager.php 1 location
|
@@ 65-71 (lines=7) @@
|
| 62 |
|
$message->getSubject() |
| 63 |
|
) |
| 64 |
|
); |
| 65 |
|
if (self::MINDBAZ_SEND_RESPONSE_OK === $response->getSendResult()) { |
| 66 |
|
$this->logger->info('Message successfully sent to subscriber', ['id' => $subscriber->getId()]); |
| 67 |
|
} else { |
| 68 |
|
$this->logger->error('An error occurred while sending the message to subscriber', ['id' => $subscriber->getId(), 'response' => $response->getSendResult()]); |
| 69 |
|
|
| 70 |
|
throw new SendErrorException(); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |