1
0
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:
David Bomba 2021-04-25 00:37:54 +10:00
parent 85f12eb871
commit 47050adb57

View File

@ -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' ];
}
}