aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-27 22:25:26 +0200
committerJoas Schilling <coding@schilljs.com>2023-07-28 14:11:20 +0200
commit8ad94cbfda58c28dacaa391390033854abdfc8b3 (patch)
treeb6a7f2a3a986f2318335c4193e1de07564eb1d62 /apps/files/lib
parent44b810bfbd83fc6eb95a67430894dbd2cf6eb339 (diff)
downloadnextcloud-server-8ad94cbfda58c28dacaa391390033854abdfc8b3.tar.gz
nextcloud-server-8ad94cbfda58c28dacaa391390033854abdfc8b3.zip
feat!: Migrate unShare events to typed events
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Collaboration/Resources/Listener.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/lib/Collaboration/Resources/Listener.php b/apps/files/lib/Collaboration/Resources/Listener.php
index 8de814fd0ea..e37bf0e9610 100644
--- a/apps/files/lib/Collaboration/Resources/Listener.php
+++ b/apps/files/lib/Collaboration/Resources/Listener.php
@@ -29,12 +29,14 @@ use OCP\EventDispatcher\IEventDispatcher;
use OCP\Server;
use OCP\Collaboration\Resources\IManager;
use OCP\Share\Events\ShareCreatedEvent;
+use OCP\Share\Events\ShareDeletedEvent;
+use OCP\Share\Events\ShareDeletedFromSelfEvent;
class Listener {
public static function register(IEventDispatcher $dispatcher): void {
$dispatcher->addListener(ShareCreatedEvent::class, [self::class, 'shareModification']);
- $dispatcher->addListener('OCP\Share::postUnshare', [self::class, 'shareModification']);
- $dispatcher->addListener('OCP\Share::postUnshareFromSelf', [self::class, 'shareModification']);
+ $dispatcher->addListener(ShareDeletedEvent::class, [self::class, 'shareModification']);
+ $dispatcher->addListener(ShareDeletedFromSelfEvent::class, [self::class, 'shareModification']);
}
public static function shareModification(): void {