summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-09 21:24:55 +0100
committerGitHub <noreply@github.com>2019-12-09 21:24:55 +0100
commit0360ab408e14a7f59f82380b8c2d70b837526651 (patch)
treee41e15badb3931eb59e140a069f142aea108e82d /apps/files_external/lib
parent061b9bb0e7445a005f07ca98bdc21c0180d4182f (diff)
parent1c585d2c502482624497f8e7d82a4f75f70c439c (diff)
downloadnextcloud-server-0360ab408e14a7f59f82380b8c2d70b837526651.tar.gz
nextcloud-server-0360ab408e14a7f59f82380b8c2d70b837526651.zip
Merge pull request #18256 from nextcloud/files-aditional-scripts-new-events
Use non-depricated events for loading additional scripts in files app
Diffstat (limited to 'apps/files_external/lib')
-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 3b3ccf20264..fd2e25ff672 100644
--- a/apps/files_external/lib/Service/BackendService.php
+++ b/apps/files_external/lib/Service/BackendService.php
@@ -31,6 +31,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;
/**
@@ -111,7 +112,8 @@ class BackendService {
static $eventSent = false;
if(!$eventSent) {
\OC::$server->getEventDispatcher()->dispatch(
- 'OCA\\Files_External::loadAdditionalBackends'
+ 'OCA\\Files_External::loadAdditionalBackends',
+ new GenericEvent()
);
$eventSent = true;
}