summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-27 18:36:40 +0200
committerGitHub <noreply@github.com>2022-05-27 18:36:40 +0200
commite4378fd18cb39407097f40431cd28c1fa01ba75d (patch)
treec4b3cd4a8fb79afe6a5ab680625c3664fdaa8f66 /lib/base.php
parentac79137816709b4adc6b2e21cc52c807381c4baf (diff)
parentae0e9ff0834e9446d14d58b5dfbc5cc90794f760 (diff)
downloadnextcloud-server-e4378fd18cb39407097f40431cd28c1fa01ba75d.tar.gz
nextcloud-server-e4378fd18cb39407097f40431cd28c1fa01ba75d.zip
Merge pull request #32349 from nextcloud/enh/projects-event
Add event to load additional scripts for projects
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index f6a3331a798..82dcd5965aa 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -62,9 +62,11 @@
*
*/
+use OC\EventDispatcher\SymfonyAdapter;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Group\Events\UserRemovedEvent;
use OCP\ILogger;
+use OCP\Server;
use OCP\Share;
use OC\Encryption\HookManager;
use OC\Files\Filesystem;
@@ -888,7 +890,7 @@ class OC {
}
private static function registerResourceCollectionHooks() {
- \OC\Collaboration\Resources\Listener::register(\OC::$server->getEventDispatcher());
+ \OC\Collaboration\Resources\Listener::register(Server::get(SymfonyAdapter::class), Server::get(IEventDispatcher::class));
}
/**