Skip to content

Commit

Permalink
add the MailPace transport to the UnsupportedSchemeException
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Dec 18, 2023
1 parent 114eea9 commit e35910b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Exception/UnsupportedSchemeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class UnsupportedSchemeException extends LogicException
'class' => Bridge\Mailjet\Transport\MailjetTransportFactory::class,
'package' => 'symfony/mailjet-mailer',
],
'mailpace' => [
'class' => Bridge\MailPace\Transport\MailPaceTransportFactory::class,
'package' => 'symfony/mail-pace-mailer',
],
'mandrill' => [
'class' => Bridge\Mailchimp\Transport\MandrillTransportFactory::class,
'package' => 'symfony/mailchimp-mailer',
Expand Down
3 changes: 3 additions & 0 deletions Tests/Exception/UnsupportedSchemeExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory;
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
Expand All @@ -41,6 +42,7 @@ public static function setUpBeforeClass(): void
MailerSendTransportFactory::class => false,
MailgunTransportFactory::class => false,
MailjetTransportFactory::class => false,
MailPaceTransportFactory::class => false,
MandrillTransportFactory::class => false,
OhMySmtpTransportFactory::class => false,
PostmarkTransportFactory::class => false,
Expand Down Expand Up @@ -70,6 +72,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
yield ['mailersend', 'symfony/mailersend-mailer'];
yield ['mailgun', 'symfony/mailgun-mailer'];
yield ['mailjet', 'symfony/mailjet-mailer'];
yield ['mailpace', 'symfony/mail-pace-mailer'];
yield ['mandrill', 'symfony/mailchimp-mailer'];
yield ['ohmysmtp', 'symfony/oh-my-smtp-mailer'];
yield ['postmark', 'symfony/postmark-mailer'];
Expand Down

0 comments on commit e35910b

Please sign in to comment.