diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-22 15:04:59 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:57:00 +0100 |
commit | 752276fd892557278206ccdab3293c7d59a9e7dd (patch) | |
tree | 45435cd7f099eeadfa9002e6e8e5d7d5e57e5345 /lib/base.php | |
parent | 01b4db62fbc4230cff953a2385d305b149744b86 (diff) | |
download | nextcloud-server-752276fd892557278206ccdab3293c7d59a9e7dd.tar.gz nextcloud-server-752276fd892557278206ccdab3293c7d59a9e7dd.zip |
Add a listener for the events
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 1c9aaaf7b01..d575c970d28 100644 --- a/lib/base.php +++ b/lib/base.php @@ -716,6 +716,7 @@ class OC { self::registerEncryptionWrapper(); self::registerEncryptionHooks(); self::registerAccountHooks(); + self::registerResourceCollectionHooks(); // Make sure that the application class is not loaded before the database is setup if ($systemConfig->getValue("installed", false)) { @@ -847,6 +848,10 @@ class OC { \OCP\Util::connectHook('OC_User', 'changeUser', $hookHandler, 'changeUserHook'); } + private static function registerResourceCollectionHooks() { + \OC\Collaboration\Resources\Listener::register(\OC::$server->getEventDispatcher()); + } + /** * register hooks for the filesystem */ |