mirror of
https://github.com/flarum/core.git
synced 2025-06-01 12:05:54 +02:00
29 lines
696 B
PHP
29 lines
696 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Mail;
|
|
|
|
use Flarum\Settings\SettingsRepositoryInterface;
|
|
use GuzzleHttp\Client;
|
|
use Illuminate\Mail\Transport\MandrillTransport;
|
|
use Swift_Transport;
|
|
|
|
class MandrillDriver implements DriverInterface
|
|
{
|
|
public function buildTransport(SettingsRepositoryInterface $settings): Swift_Transport
|
|
{
|
|
return new MandrillTransport(
|
|
new Client(['connect_timeout' => 60]),
|
|
$settings->get('mail_mandrill_secret')
|
|
);
|
|
}
|
|
}
|