mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 20:57:32 -05:00 
			
		
		
		
	* fix typo * php-cs traits * CS fixer pass * Password protect User routes * Implement checks to prevent editing a deleted record * Clean up payment flows * Fixes for 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);
 | 
						|
    }
 | 
						|
}
 |