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