mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
18 lines
409 B
PHP
18 lines
409 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Helpers\Mail;
|
||
|
|
||
|
use App\Helpers\Mail\GmailTransport;
|
||
|
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
||
|
use Illuminate\Mail\TransportManager;
|
||
|
|
||
|
class GmailTransportManager extends TransportManager
|
||
|
{
|
||
|
protected function createGmailDriver()
|
||
|
{
|
||
|
$token = $this->app['config']->get('services.gmail.token', []);
|
||
|
|
||
|
return new GmailTransport(Mail $mail, string $token);
|
||
|
}
|
||
|
|
||
|
}
|