This commit is contained in:
mcndave committed 2023-05-31 18:11:38 +00:00
commit 4404943f8b
3 files changed
+16 -4

No files matched your search

+3 -3
View File
@@ -4,12 +4,12 @@ use function DI\autowire, DI\create, DI\get;
use TheBugs\Email\EmailConfiguration,
TheBugs\Email\MailerInterface,
TheBugs\Email\SwiftMailer;
TheBugs\Email\SymfonyMailer;
return [
EmailConfiguration::class => function($c) {
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
$email->smtpHost = getenv('SMTP_HOST');
$email->smtpHost = getenv('SMTP_HOSTNAME');
$email->smtpPort = getenv('SMTP_PORT');
$email->smtpUsername = getenv('SMTP_USERNAME');
$email->smtpPassword = getenv('SMTP_PASSWORD');
@@ -20,5 +20,5 @@ return [
return $email;
},
MailerInterface::class => autowire(SwiftMailer::class),
MailerInterface::class => autowire(SymfonyMailer::class),
];