commit
377467a50f
2 changed files with 4 additions and 1 deletions
2
.env
2
.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 ###
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue