aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Service/BackendService.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-12-09 14:24:57 +0100
committerRobin Appelman <robin@icewind.nl>2019-12-09 14:24:57 +0100
commit1c585d2c502482624497f8e7d82a4f75f70c439c (patch)
treee7eed91f824f3aaa3530dbbd46f737e90ca5aa0e /apps/files_external/lib/Service/BackendService.php
parent7d1206f6f2e6b54bb3d6f9cdb0d8a00de7a1ba9d (diff)
downloadnextcloud-server-1c585d2c502482624497f8e7d82a4f75f70c439c.tar.gz
nextcloud-server-1c585d2c502482624497f8e7d82a4f75f70c439c.zip
use OCP\EventDispatcher\GenericEvent in more places
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Service/BackendService.php')
-rw-r--r--apps/files_external/lib/Service/BackendService.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/lib/Service/BackendService.php b/apps/files_external/lib/Service/BackendService.php
index 167b1017b02..adfe6b0a9c3 100644
--- a/apps/files_external/lib/Service/BackendService.php
+++ b/apps/files_external/lib/Service/BackendService.php
@@ -30,6 +30,7 @@ use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\Backend\Backend;
use OCA\Files_External\Lib\Config\IAuthMechanismProvider;
use OCA\Files_External\Lib\Config\IBackendProvider;
+use OCP\EventDispatcher\GenericEvent;
use OCP\IConfig;
/**
@@ -110,7 +111,8 @@ class BackendService {
static $eventSent = false;
if(!$eventSent) {
\OC::$server->getEventDispatcher()->dispatch(
- 'OCA\\Files_External::loadAdditionalBackends'
+ 'OCA\\Files_External::loadAdditionalBackends',
+ new GenericEvent()
);
$eventSent = true;
}