Skip to content

Commit 0e29b0e

Browse files
authored
fix(mail): fix typos (#1410)
1 parent f80536a commit 0e29b0e

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

packages/mail/src/Transports/Postmark/PostmarkConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
final class PostmarkConfig implements MailerConfig, ProvidesDefaultSender
1818
{
1919
public string $transport {
20-
get => match ($this->sceme) {
20+
get => match ($this->scheme) {
2121
PostmarkConnectionScheme::API => PostmarkApiTransport::class,
2222
PostmarkConnectionScheme::SMTP => PostmarkSmtpTransport::class,
2323
};
@@ -54,8 +54,8 @@ public function createTransport(): TransportInterface
5454
{
5555
return new PostmarkTransportFactory()->create(new Dsn(
5656
scheme: PostmarkConnectionScheme::API->value,
57-
user: $this->key,
5857
host: $this->host ?? 'default',
58+
user: $this->key,
5959
port: $this->port,
6060
));
6161
}

packages/mail/src/Transports/Ses/SesMailerConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
final class SesMailerConfig implements MailerConfig, ProvidesDefaultSender
1818
{
1919
public string $transport {
20-
get => match ($this->sceme) {
20+
get => match ($this->scheme) {
2121
SesConnectionScheme::API => SesApiAsyncAwsTransport::class,
2222
SesConnectionScheme::HTTP => SesHttpAsyncAwsTransport::class,
2323
};
@@ -64,9 +64,9 @@ public function createTransport(): TransportInterface
6464
{
6565
return new SesTransportFactory()->create(new Dsn(
6666
scheme: $this->scheme->value,
67+
host: $this->host ?? 'default',
6768
user: $this->accessKey,
6869
password: $this->secretKey,
69-
host: $this->host ?? 'default',
7070
options: [
7171
'region' => $this->region,
7272
'session_token' => $this->sessionToken,

packages/mail/src/Transports/Ses/SesSmtpMailerConfig.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22

33
namespace Tempest\Mail\Transports\Ses;
44

5-
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesApiAsyncAwsTransport;
6-
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesHttpAsyncAwsTransport;
75
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesSmtpTransport;
86
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory;
97
use Symfony\Component\Mailer\Transport\Dsn;
10-
use Symfony\Component\Mailer\Transport\NullTransport;
118
use Symfony\Component\Mailer\Transport\TransportInterface;
129
use Tempest\Mail\EmailAddress;
1310
use Tempest\Mail\MailerConfig;
14-
use UnitEnum;
1511

1612
/**
1713
* Send emails using Amazon SES.
@@ -61,9 +57,9 @@ public function createTransport(): TransportInterface
6157
{
6258
return new SesTransportFactory()->create(new Dsn(
6359
scheme: 'ses+smtp',
60+
host: $this->host ?? 'default',
6461
user: $this->username,
6562
password: $this->password,
66-
host: $this->host ?? 'default',
6763
options: [
6864
'ping_threshold' => $this->pingThreshold,
6965
'region' => $this->region,

0 commit comments

Comments
 (0)