aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-06-15 17:53:13 +0200
committerLouis Chemineau <louis@chmn.me>2021-06-16 10:11:54 +0200
commitbe42a1323567183ec1e584c9cedd9b68fc2dc42b (patch)
tree66f3935c53681768248429590e53a3dbee07896f
parent644ffebda8cbe392e01a64df0b54093f59267933 (diff)
downloadnextcloud-server-be42a1323567183ec1e584c9cedd9b68fc2dc42b.tar.gz
nextcloud-server-be42a1323567183ec1e584c9cedd9b68fc2dc42b.zip
Fix share activity dispatch
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r--lib/private/Share20/Manager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index b9ed2f4c39a..b5e1b944bc5 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -107,6 +107,8 @@ class Manager implements IManager {
private $sharingDisabledForUsersCache;
/** @var EventDispatcherInterface */
private $legacyDispatcher;
+ /** @var LegacyHooks */
+ private $legacyHooks;
/** @var IMailer */
private $mailer;
/** @var IURLGenerator */
@@ -149,6 +151,9 @@ class Manager implements IManager {
$this->rootFolder = $rootFolder;
$this->legacyDispatcher = $legacyDispatcher;
$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->mailer = $mailer;
$this->urlGenerator = $urlGenerator;
$this->defaults = $defaults;