1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 10:24:46 +02:00

Allow configuring all drivers via frontend (#1169)

This includes an API endpoint for fetching the list of possible
drivers and their configuration fields. In the future, this can
be extended to include more meta information about each field.
This commit is contained in:
Franz Liedke
2019-03-19 09:56:20 +01:00
parent 2bd40b50c7
commit 5154d7e5a6
11 changed files with 196 additions and 32 deletions

View File

@@ -17,6 +17,11 @@ use Swift_Transport;
class SendmailDriver implements DriverInterface
{
public function availableSettings(): array
{
return [];
}
public function buildTransport(SettingsRepositoryInterface $settings): Swift_Transport
{
return new Swift_SendmailTransport;