diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-28 14:10:27 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-28 14:11:22 +0200 |
commit | 3962cd0aa8ab7530deffa3b41cab2e11a01fd14a (patch) | |
tree | f8ec289aacdf05398e2407b8e7e54b547ee1986e /apps/files_external/lib | |
parent | b9e2f494a1307dac05b49fe74a224dc93f4c70e7 (diff) | |
download | nextcloud-server-3962cd0aa8ab7530deffa3b41cab2e11a01fd14a.tar.gz nextcloud-server-3962cd0aa8ab7530deffa3b41cab2e11a01fd14a.zip |
fix!: Move getEventDispatcher usage to IEventDispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Service/BackendService.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/Service/BackendService.php b/apps/files_external/lib/Service/BackendService.php index 2cfc1d48b2e..056b288a88b 100644 --- a/apps/files_external/lib/Service/BackendService.php +++ b/apps/files_external/lib/Service/BackendService.php @@ -33,6 +33,7 @@ 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\EventDispatcher\IEventDispatcher; use OCP\IConfig; /** @@ -112,7 +113,7 @@ class BackendService { private function callForRegistrations() { static $eventSent = false; if (!$eventSent) { - \OC::$server->getEventDispatcher()->dispatch( + \OC::$server->get(IEventDispatcher::class)->dispatch( 'OCA\\Files_External::loadAdditionalBackends', new GenericEvent() ); |