1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 01:11:34 +02:00
invoiceninja/app/Helpers/Mail/GmailTransportManager.php
2021-02-16 22:47:30 +11:00

23 lines
551 B
PHP

<?php
namespace App\Helpers\Mail;
use Illuminate\Mail\MailManager;
use App\CustomMailDriver\CustomTransport;
use Dacastro4\LaravelGmail\Services\Message\Mail;
use Illuminate\Support\Facades\Config;
class GmailTransportManager extends MailManager
{
protected function createGmailTransport()
{
info("booting gmail transport");
// $token = $this->app['config']->get('services.gmail.token', []);
$token = config('services.gmail.token');
$mail = new Mail;
return new GmailTransport($mail, $token);
}
}