new Dsn('postmark+smtp', 'example.com'
),
true,
];
} public static function createProvider(): iterable
{ $logger =
new NullLogger();
yield [ new Dsn('postmark+api', 'default', self::USER
),
new PostmarkApiTransport(self::USER,
new MockHttpClient(), null,
$logger),
];
yield [ new Dsn('postmark+api', 'example.com', self::USER, '', 8080
),
(new PostmarkApiTransport(self::USER,
new MockHttpClient(), null,
$logger))->
setHost('example.com'
)->
setPort(8080
),
];
yield [ new Dsn('postmark+api', 'example.com', self::USER, '', 8080,
['message_stream' => 'broadcasts'
]),
(new PostmarkApiTransport(self::USER,
new MockHttpClient(), null,
$logger))->
setHost('example.com'
)->
setPort(8080
)->
setMessageStream('broadcasts'
),
];