Skip to content

Commit

Permalink
Mail: Add an array of supported drivers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
franzliedke committed Dec 20, 2018
1 parent 8a93f8b commit 208bad3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Foundation/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

1 comment on commit 208bad3

@luceos
Copy link
Member

@luceos luceos commented on 208bad3 Jan 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.