mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for initializing the mail malier
This commit is contained in:
parent
c90fe87388
commit
4fba838ee8
@ -18,28 +18,30 @@ class MailServiceProvider extends MailProvider
|
|||||||
|
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->app['mail.manager']->extend('postmark', function () {
|
|
||||||
return new PostmarkTransport(
|
|
||||||
$this->guzzle(config('postmark.guzzle', [])),
|
|
||||||
config('postmark.secret', config('services.postmark.secret'))
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function registerIlluminateMailer()
|
protected function registerIlluminateMailer()
|
||||||
{
|
{
|
||||||
// $this->app->singleton('mail.manager', function($app) {
|
$this->app->singleton('mail.manager', function($app) {
|
||||||
// return new GmailTransportManager($app);
|
|
||||||
// });
|
|
||||||
|
|
||||||
$this->app->bind('mail.manager', function($app) {
|
|
||||||
return new GmailTransportManager($app);
|
return new GmailTransportManager($app);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// $this->app->bind('mail.manager', function($app) {
|
||||||
|
// return new GmailTransportManager($app);
|
||||||
|
// });
|
||||||
|
|
||||||
$this->app->bind('mailer', function ($app) {
|
$this->app->bind('mailer', function ($app) {
|
||||||
return $app->make('mail.manager')->mailer();
|
return $app->make('mail.manager')->mailer();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$this->app['mail.manager']->extend('postmark', function () {
|
||||||
|
return new PostmarkTransport(
|
||||||
|
$this->guzzle(config('postmark.guzzle', [])),
|
||||||
|
config('postmark.secret')
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function guzzle(array $config): HttpClient
|
protected function guzzle(array $config): HttpClient
|
||||||
|
Loading…
x
Reference in New Issue
Block a user