true,
];
} public static function createProvider(): iterable
{ $client =
new MockHttpClient();
$logger =
new NullLogger();
yield [ new Dsn('ses+api', 'default', self::USER, self::PASSWORD
),
new SesApiAsyncAwsTransport(new SesClient(Configuration::
create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1'
]), null,
$client,
$logger), null,
$logger),
];
yield [ new Dsn('ses+api', 'default', self::USER, self::PASSWORD, null,
['region' => 'eu-west-2'
]),
new SesApiAsyncAwsTransport(new SesClient(Configuration::
create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-2'
]), null,
$client,
$logger), null,
$logger),
];
yield [ new Dsn('ses+api', 'example.com', self::USER, self::PASSWORD, 8080
),
new SesApiAsyncAwsTransport(new SesClient(Configuration::
create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'endpoint' => 'https://example.com:8080'
]), null,
$client,
$logger), null,
$logger),
];