mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6064 from turbo124/v5-develop
Fixes for MailServiceProvider
This commit is contained in:
commit
d411d00e69
@ -36,7 +36,7 @@ class MailServiceProvider extends MailProvider
|
|||||||
|
|
||||||
$this->app->singleton('mail.manager', function($app) {
|
$this->app->singleton('mail.manager', function($app) {
|
||||||
$manager = new GmailTransportManager($app);
|
$manager = new GmailTransportManager($app);
|
||||||
$manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
// $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
||||||
return $manager;
|
return $manager;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -62,14 +62,14 @@ class MailServiceProvider extends MailProvider
|
|||||||
config('postmark.secret')
|
config('postmark.secret')
|
||||||
);
|
);
|
||||||
|
|
||||||
$manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
// $manager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
||||||
});
|
});
|
||||||
|
|
||||||
return $manager;
|
return $manager;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app('mail.manager')->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
||||||
|
|
||||||
// $this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
// $this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
||||||
// $mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
// $mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user