summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2020-12-08 20:27:16 -0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-23 11:00:45 +0100
commit85783e45e92dcddd1402dfef23b6a6f902f866ea (patch)
treea409b5b9a6964f6fd04687bdbdad3a42e1d464b1 /lib/private/Share20
parent61791962f2366c40a94537989c66f338ebb58a38 (diff)
downloadnextcloud-server-85783e45e92dcddd1402dfef23b6a6f902f866ea.tar.gz
nextcloud-server-85783e45e92dcddd1402dfef23b6a6f902f866ea.zip
+ShareDeletedEvent
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 0787f6d32aa..427b7b449ec 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1168,6 +1168,8 @@ class Manager implements IManager {
$provider = $this->factory->getProviderForType($share->getShareType());
$provider->delete($share);
+ $this->dispatcher->dispatchTyped(new Share\Events\ShareDeletedEvent($share, $deletedShares));
+
// All the deleted shares caused by this delete
$deletedShares[] = $share;