mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:34:39 -04:00
Merge pull request #6057 from turbo124/v5-develop
Fixes for postmark bindings
This commit is contained in:
commit
ec9a49a04c
@ -14,11 +14,11 @@ class MailServiceProvider extends MailProvider
|
|||||||
|
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
$this->registerIlluminateMailer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
$this->registerIlluminateMailer();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,13 +32,13 @@ class MailServiceProvider extends MailProvider
|
|||||||
return $app->make('mail.manager')->mailer();
|
return $app->make('mail.manager')->mailer();
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->app['mail.manager']->extend('postmark', function ($app, $postmark) {
|
$this->app['mail.manager']->extend('postmark', function () {
|
||||||
$postmark = new PostmarkTransport(
|
|
||||||
|
return new PostmarkTransport(
|
||||||
$this->guzzle(config('postmark.guzzle', [])),
|
$this->guzzle(config('postmark.guzzle', [])),
|
||||||
config('postmark.secret')
|
config('postmark.secret')
|
||||||
);
|
);
|
||||||
|
|
||||||
return $postmark;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
$this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user