mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for initializaing PostMark
This commit is contained in:
parent
85f12eb871
commit
47050adb57
@ -36,10 +36,11 @@ class MailServiceProvider extends MailProvider
|
||||
});
|
||||
|
||||
$this->app['mail.manager']->extend('postmark', function () {
|
||||
return new PostmarkTransport(
|
||||
$this->guzzle(config('postmark.guzzle', [])),
|
||||
config('postmark.secret')
|
||||
);
|
||||
return new HttpClient(array_merge($config, [
|
||||
'base_uri' => empty($config['base_uri'])
|
||||
? 'https://api.postmarkapp.com'
|
||||
: $config['base_uri']
|
||||
]));
|
||||
});
|
||||
|
||||
}
|
||||
@ -56,4 +57,3 @@ class MailServiceProvider extends MailProvider
|
||||
'mailer' ];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user