aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/Manager.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-25 19:30:15 +0200
committerJoas Schilling <coding@schilljs.com>2023-07-27 09:57:53 +0200
commitc67c067ee796d8a466c47458d06a8a0c20f8d5c2 (patch)
tree70ee4ddbfc886038cb58a26e9226e1aeb1b1e3fd /lib/private/Share20/Manager.php
parent44a0a621075962fecd9a3c94e724e2b544f7ce38 (diff)
downloadnextcloud-server-c67c067ee796d8a466c47458d06a8a0c20f8d5c2.tar.gz
nextcloud-server-c67c067ee796d8a466c47458d06a8a0c20f8d5c2.zip
fix: Move Sharing events to IEventDispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share20/Manager.php')
-rw-r--r--lib/private/Share20/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 732bd5bb97d..3f5dbd7cd28 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -157,7 +157,7 @@ class Manager implements IManager {
$this->sharingDisabledForUsersCache = new CappedMemoryCache();
// The constructor of LegacyHooks registers the listeners of share events
// do not remove if those are not properly migrated
- $this->legacyHooks = new LegacyHooks($this->legacyDispatcher);
+ $this->legacyHooks = new LegacyHooks($dispatcher);
$this->mailer = $mailer;
$this->urlGenerator = $urlGenerator;
$this->defaults = $defaults;
@@ -194,7 +194,7 @@ class Manager implements IManager {
// Let others verify the password
try {
- $this->legacyDispatcher->dispatch(new ValidatePasswordPolicyEvent($password));
+ $this->dispatcher->dispatchTyped(new ValidatePasswordPolicyEvent($password));
} catch (HintException $e) {
throw new \Exception($e->getHint());
}