mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 02:58:50 -04:00
* Fixes for OpenAPI Documentation + fix support for docs for PHP 7.4 * Minor fixes for GMail API * Add fix for 2 contacts with no email addresses failing validation, emails are optional! but cannot be duplicated if a value is set * Return template as a object with subject and body components * Fixes for OpenAPI Schema * Stubs for payment edge cases * payment tests
19 lines
423 B
PHP
19 lines
423 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', []);
|
|
$mail = new Mail;
|
|
|
|
return new GmailTransport($mail, $token);
|
|
}
|
|
|
|
} |