mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for postmark bindings
This commit is contained in:
parent
27582b32bd
commit
6ac714960a
@ -14,11 +14,11 @@ class MailServiceProvider extends MailProvider
|
||||
|
||||
public function register()
|
||||
{
|
||||
$this->registerIlluminateMailer();
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
$this->registerIlluminateMailer();
|
||||
|
||||
}
|
||||
|
||||
@ -32,13 +32,13 @@ class MailServiceProvider extends MailProvider
|
||||
return $app->make('mail.manager')->mailer();
|
||||
});
|
||||
|
||||
$this->app['mail.manager']->extend('postmark', function ($app, $postmark) {
|
||||
$postmark = new PostmarkTransport(
|
||||
$this->app['mail.manager']->extend('postmark', function () {
|
||||
|
||||
return new PostmarkTransport(
|
||||
$this->guzzle(config('postmark.guzzle', [])),
|
||||
config('postmark.secret')
|
||||
);
|
||||
|
||||
return $postmark;
|
||||
});
|
||||
|
||||
$this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {
|
||||
|
Loading…
Reference in New Issue
Block a user