mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-12-15 20:35:31 -05:00
26 lines
550 B
PHP
26 lines
550 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Helpers\Mail\GmailTransportManager;
|
|
use Illuminate\Mail\MailServiceProvider as MailProvider;
|
|
|
|
class MailServiceProvider extends MailProvider
|
|
{
|
|
|
|
public function register()
|
|
{
|
|
$this->registerSwiftTransport();
|
|
$this->registerIlluminateMailer();
|
|
$this->registerMarkdownRenderer();
|
|
}
|
|
|
|
protected function registerSwiftTransport()
|
|
{
|
|
|
|
$this->app->singleton('swift.transport', function ($app) {
|
|
return new GmailTransportManager($app);
|
|
});
|
|
}
|
|
}
|