Skip to content

Commit 2cf98fa

Browse files
committed
Add Sweego Mailer Bridge
1 parent 8b2fb26 commit 2cf98fa

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ class UnsupportedSchemeException extends LogicException
8484
'class' => Bridge\Amazon\Transport\SesTransportFactory::class,
8585
'package' => 'symfony/amazon-mailer',
8686
],
87+
'sweego' => [
88+
'class' => Bridge\Sweego\Transport\SweegoTransportFactory::class,
89+
'package' => 'symfony/sweego-mailer',
90+
],
8791
];
8892

8993
public function __construct(Dsn $dsn, ?string $name = null, array $supported = [])

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
3030
use Symfony\Component\Mailer\Bridge\Scaleway\Transport\ScalewayTransportFactory;
3131
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
32+
use Symfony\Component\Mailer\Bridge\Sweego\Transport\SweegoTransportFactory;
3233
use Symfony\Component\Mailer\Exception\UnsupportedSchemeException;
3334
use Symfony\Component\Mailer\Transport\Dsn;
3435

@@ -57,6 +58,7 @@ public static function setUpBeforeClass(): void
5758
ScalewayTransportFactory::class => false,
5859
SendgridTransportFactory::class => false,
5960
SesTransportFactory::class => false,
61+
SweegoTransportFactory::class => false,
6062
]);
6163
}
6264

@@ -91,6 +93,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
9193
yield ['scaleway', 'symfony/scaleway-mailer'];
9294
yield ['sendgrid', 'symfony/sendgrid-mailer'];
9395
yield ['ses', 'symfony/amazon-mailer'];
96+
yield ['sweego', 'symfony/sweego-mailer'];
9497
}
9598

9699
/**

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
3030
use Symfony\Component\Mailer\Bridge\Scaleway\Transport\ScalewayTransportFactory;
3131
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
32+
use Symfony\Component\Mailer\Bridge\Sweego\Transport\SweegoTransportFactory;
3233
use Symfony\Component\Mailer\Exception\InvalidArgumentException;
3334
use Symfony\Component\Mailer\Exception\UnsupportedSchemeException;
3435
use Symfony\Component\Mailer\Transport\Dsn;
@@ -66,6 +67,7 @@ final class Transport
6667
ScalewayTransportFactory::class,
6768
SendgridTransportFactory::class,
6869
SesTransportFactory::class,
70+
SweegoTransportFactory::class,
6971
];
7072

7173
public static function fromDsn(#[\SensitiveParameter] string $dsn, ?EventDispatcherInterface $dispatcher = null, ?HttpClientInterface $client = null, ?LoggerInterface $logger = null): TransportInterface

0 commit comments

Comments
 (0)