Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Added event filter for email settings to allow adding new providers

givanz45a1b7d86875
diff --git a/admin/controller/settings/email.php b/admin/controller/settings/email.php
index 2be2dd8..c53a5b2 100755
--- a/admin/controller/settings/email.php
+++ b/admin/controller/settings/email.php
@@ -28,6 +28,7 @@ use Vvveb\Controller\Base;
use function Vvveb\email;
use function Vvveb\setConfig;
use Vvveb\System\Config;
+use Vvveb\System\Event;
use Vvveb\System\Validator;
class Email extends Base {
@@ -81,6 +82,11 @@ class Email extends Base {
function index() {
$settings = config('mail', []);
+
+ $drivers = ['mail' => 'Mail', 'smtp' => 'Smtp'];
+ list($drivers) = Event::trigger(__CLASS__, __FUNCTION__, $drivers);
+
$this->view->email = $settings;
+ $this->view->drivers = $drivers;
}
}