public static function createProvider(): iterable
{ $logger =
new NullLogger();
yield [ new Dsn('mailpace+api', 'default', self::USER
),
new MailPaceApiTransport(self::USER,
new MockHttpClient(), null,
$logger),
];
yield [ new Dsn('mailpace+api', 'example.com', self::USER, '', 8080
),
(new MailPaceApiTransport(self::USER,
new MockHttpClient(), null,
$logger))->
setHost('example.com'
)->
setPort(8080
),
];
yield [ new Dsn('mailpace', 'default', self::USER
),
new MailPaceSmtpTransport(self::USER, null,
$logger),
];
yield [ new Dsn('mailpace+smtp', 'default', self::USER
),
new MailPaceSmtpTransport(self::USER, null,
$logger),
];