aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-27 21:45:31 +0200
committerJoas Schilling <coding@schilljs.com>2023-07-28 14:11:19 +0200
commit44b810bfbd83fc6eb95a67430894dbd2cf6eb339 (patch)
treebebee497a72c8cc05dc171503211888c97184f69 /apps/files/lib
parent68fc9b48c24bf810488c5910da2feadd10587e51 (diff)
downloadnextcloud-server-44b810bfbd83fc6eb95a67430894dbd2cf6eb339.tar.gz
nextcloud-server-44b810bfbd83fc6eb95a67430894dbd2cf6eb339.zip
feat!: Migrate Sharing 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.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/Collaboration/Resources/Listener.php b/apps/files/lib/Collaboration/Resources/Listener.php
index 28ce5f87897..8de814fd0ea 100644
--- a/apps/files/lib/Collaboration/Resources/Listener.php
+++ b/apps/files/lib/Collaboration/Resources/Listener.php
@@ -28,10 +28,11 @@ namespace OCA\Files\Collaboration\Resources;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Server;
use OCP\Collaboration\Resources\IManager;
+use OCP\Share\Events\ShareCreatedEvent;
class Listener {
public static function register(IEventDispatcher $dispatcher): void {
- $dispatcher->addListener('OCP\Share::postShare', [self::class, 'shareModification']);
+ $dispatcher->addListener(ShareCreatedEvent::class, [self::class, 'shareModification']);
$dispatcher->addListener('OCP\Share::postUnshare', [self::class, 'shareModification']);
$dispatcher->addListener('OCP\Share::postUnshareFromSelf', [self::class, 'shareModification']);
}