summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-05-12 10:18:40 +0200
committerJulius Härtl <jus@bitgrid.net>2022-05-12 10:50:13 +0200
commit9a6869943e9a929cd2e0331c1d25d07f03d865e9 (patch)
tree6616cb956e99969158efa0b08289a6f608d21f14 /lib/base.php
parentbe49f79503a9e187cec43fabeb6f5eed9b06af6c (diff)
downloadnextcloud-server-9a6869943e9a929cd2e0331c1d25d07f03d865e9.tar.gz
nextcloud-server-9a6869943e9a929cd2e0331c1d25d07f03d865e9.zip
Introduce event for loading additional script on projects
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 8cf5360b084..cd9f4fc2478 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;
@@ -881,7 +883,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));
}
/**