Skip to content

Commit 9ef1f1d

Browse files
MrMicky-FRfabpot
authored andcommitted
[Mailer] Add Scaleway bridge
1 parent 2ad0538 commit 9ef1f1d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Exception/UnsupportedSchemeException.php

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class UnsupportedSchemeException extends LogicException
5656
'class' => Bridge\Postmark\Transport\PostmarkTransportFactory::class,
5757
'package' => 'symfony/postmark-mailer',
5858
],
59+
'scaleway' => [
60+
'class' => Bridge\Scaleway\Transport\ScalewayTransportFactory::class,
61+
'package' => 'symfony/scaleway-mailer',
62+
],
5963
'sendgrid' => [
6064
'class' => Bridge\Sendgrid\Transport\SendgridTransportFactory::class,
6165
'package' => 'symfony/sendgrid-mailer',

Tests/Exception/UnsupportedSchemeExceptionTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory;
2525
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
26+
use Symfony\Component\Mailer\Bridge\Scaleway\Transport\ScalewayTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Sendinblue\Transport\SendinblueTransportFactory;
2829
use Symfony\Component\Mailer\Exception\UnsupportedSchemeException;
@@ -46,6 +47,7 @@ public static function setUpBeforeClass(): void
4647
MandrillTransportFactory::class => false,
4748
OhMySmtpTransportFactory::class => false,
4849
PostmarkTransportFactory::class => false,
50+
ScalewayTransportFactory::class => false,
4951
SendgridTransportFactory::class => false,
5052
SendinblueTransportFactory::class => false,
5153
SesTransportFactory::class => false,
@@ -76,6 +78,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
7678
yield ['mandrill', 'symfony/mailchimp-mailer'];
7779
yield ['ohmysmtp', 'symfony/oh-my-smtp-mailer'];
7880
yield ['postmark', 'symfony/postmark-mailer'];
81+
yield ['scaleway', 'symfony/scaleway-mailer'];
7982
yield ['sendgrid', 'symfony/sendgrid-mailer'];
8083
yield ['sendinblue', 'symfony/sendinblue-mailer'];
8184
yield ['ses', 'symfony/amazon-mailer'];

Transport.php

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory;
2525
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
26+
use Symfony\Component\Mailer\Bridge\Scaleway\Transport\ScalewayTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Sendinblue\Transport\SendinblueTransportFactory;
2829
use Symfony\Component\Mailer\Exception\InvalidArgumentException;
@@ -55,6 +56,7 @@ final class Transport
5556
MandrillTransportFactory::class,
5657
OhMySmtpTransportFactory::class,
5758
PostmarkTransportFactory::class,
59+
ScalewayTransportFactory::class,
5860
SendgridTransportFactory::class,
5961
SendinblueTransportFactory::class,
6062
SesTransportFactory::class,

0 commit comments

Comments
 (0)