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

Merge pull request #6064 from turbo124/v5-develop

Fixes for MailServiceProvider
This commit is contained in:
David Bomba 2021-06-17 18:47:34 +10:00 committed by GitHub
commit d411d00e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ class MailServiceProvider extends MailProvider
$this->app->singleton('mail.manager', function($app) {
$manager = new GmailTransportManager($app);
$manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
// $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
return $manager;
});
@ -62,14 +62,14 @@ class MailServiceProvider extends MailProvider
config('postmark.secret')
);
$manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
// $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
});
return $manager;
});
app('mail.manager')->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
// $this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
// $mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));