Mail: Add an array of supported drivers

This can be used for e.g. validation, or a dropdown in the frontend.
It can also be extended by extensions, such as flagrow/mail-drivers.

Refs #1169.
This commit is contained in:
Franz Liedke 2018-12-20 13:31:28 +01:00
parent 8a93f8b6b6
commit 208bad393f
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -25,6 +25,10 @@ class MailServiceProvider extends AbstractServiceProvider
{
public function register()
{
$this->app->singleton('mail.supported_drivers', function () {
return ['smtp', 'mail', 'log'];
});
$this->app->singleton('swift.mailer', function ($app) {
$settings = $app->make(SettingsRepositoryInterface::class);