From 9cc381a709dc7e496dd33d3f35beb221fb624932 Mon Sep 17 00:00:00 2001 From: Slim Amamou Date: Thu, 16 Jan 2025 09:17:44 +0100 Subject: [PATCH 1/2] Activated brevo specific env variable --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index daf980d..822ccf0 100644 --- a/.env +++ b/.env @@ -109,5 +109,5 @@ STORAGE_SECRET=!ChangeMe! ###< league/flysystem-bundle ### ###> symfony/brevo-notifier ### -# BREVO_DSN=brevo://API_KEY@default?sender=SENDER +BREVO_DSN=brevo://API_KEY@default?sender=SENDER ###< symfony/brevo-notifier ### From a38d47809a65c3015fbfbca23eb615780b7363c5 Mon Sep 17 00:00:00 2001 From: Slim Amamou Date: Thu, 16 Jan 2025 16:15:54 +0100 Subject: [PATCH 2/2] Added logging for SMS --- src/Notifier/SmsNotifier.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Notifier/SmsNotifier.php b/src/Notifier/SmsNotifier.php index 6733658..bf7333e 100644 --- a/src/Notifier/SmsNotifier.php +++ b/src/Notifier/SmsNotifier.php @@ -26,7 +26,9 @@ final class SmsNotifier public function notify(User $user, string $subject): ?SentMessage { + $this->logger->info('SMS Notification'); if (!$user->canBeNotifiedBySms()) { + $this->logger->warning('User cannot be notified by SMS'); return null; } @@ -54,5 +56,6 @@ final class SmsNotifier return null; } + $this->logger->info('SMS Sent Successfully'); } }