1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for invokable class (#3122)

* Reset DB connection after a DB scan in the same request

* Testing Gmail Oauth Email

* fixes for invokable class
This commit is contained in:
David Bomba 2019-12-04 13:30:19 +11:00 committed by GitHub
parent bc85bcd747
commit 7d073a2313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ use Illuminate\Support\Facades\Mail;
class GmailTransportConfig
{
public function __invoke(User $user)
public function __invoke()
{
// $transport = (new Swift_SmtpTransport('smtp.googlemail.com', 465, 'ssl'))
@ -31,13 +31,13 @@ class GmailTransportConfig
//
// $transport = \Swift_SmtpTransport::newInstance($host, $port);
// set encryption
if (isset($encryption)) $transport->setEncryption($encryption);
// set username and password
if (isset($username))
{
$transport->setUsername($username);
$transport->setPassword($password);
}
// if (isset($encryption)) $transport->setEncryption($encryption);
// // set username and password
// if (isset($username))
// {
// $transport->setUsername($username);
// $transport->setPassword($password);
// }
//
//