Skip to content

Commit 66005b8

Browse files
committed
add the MailPace transport to the UnsupportedSchemeException
1 parent 5a2ebb7 commit 66005b8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Symfony/Component/Mailer/Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ class UnsupportedSchemeException extends LogicException
4040
'class' => Bridge\Mailjet\Transport\MailjetTransportFactory::class,
4141
'package' => 'symfony/mailjet-mailer',
4242
],
43+
'mailpace' => [
44+
'class' => Bridge\MailPace\Transport\MailPaceTransportFactory::class,
45+
'package' => 'symfony/mail-pace-mailer',
46+
],
4347
'mandrill' => [
4448
'class' => Bridge\Mailchimp\Transport\MandrillTransportFactory::class,
4549
'package' => 'symfony/mailchimp-mailer',

src/Symfony/Component/Mailer/Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory;
2121
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
2222
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
23+
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
2324
use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory;
2425
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
2526
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
@@ -41,6 +42,7 @@ public static function setUpBeforeClass(): void
4142
MailerSendTransportFactory::class => false,
4243
MailgunTransportFactory::class => false,
4344
MailjetTransportFactory::class => false,
45+
MailPaceTransportFactory::class => false,
4446
MandrillTransportFactory::class => false,
4547
OhMySmtpTransportFactory::class => false,
4648
PostmarkTransportFactory::class => false,
@@ -70,6 +72,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
7072
yield ['mailersend', 'symfony/mailersend-mailer'];
7173
yield ['mailgun', 'symfony/mailgun-mailer'];
7274
yield ['mailjet', 'symfony/mailjet-mailer'];
75+
yield ['mailpace', 'symfony/mail-pace-mailer'];
7376
yield ['mandrill', 'symfony/mailchimp-mailer'];
7477
yield ['ohmysmtp', 'symfony/oh-my-smtp-mailer'];
7578
yield ['postmark', 'symfony/postmark-mailer'];

0 commit comments

Comments
 (0)