diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-19 21:56:34 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-25 11:19:26 +0200 |
commit | 77bc6c32d8b7cfe65f6a0e4ba303997a22f075d7 (patch) | |
tree | 30c9d215b79d0c21ba7ecac0b5fb94865fec2863 /apps/files/lib | |
parent | 43ab741f9cc252ac48612f586b0d545c0c253e5c (diff) | |
download | nextcloud-server-77bc6c32d8b7cfe65f6a0e4ba303997a22f075d7.tar.gz nextcloud-server-77bc6c32d8b7cfe65f6a0e4ba303997a22f075d7.zip |
fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Collaboration/Resources/Listener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Collaboration/Resources/Listener.php b/apps/files/lib/Collaboration/Resources/Listener.php index 64dd693a4da..28ce5f87897 100644 --- a/apps/files/lib/Collaboration/Resources/Listener.php +++ b/apps/files/lib/Collaboration/Resources/Listener.php @@ -25,12 +25,12 @@ declare(strict_types=1); */ namespace OCA\Files\Collaboration\Resources; +use OCP\EventDispatcher\IEventDispatcher; use OCP\Server; use OCP\Collaboration\Resources\IManager; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; class Listener { - public static function register(EventDispatcherInterface $dispatcher): void { + public static function register(IEventDispatcher $dispatcher): void { $dispatcher->addListener('OCP\Share::postShare', [self::class, 'shareModification']); $dispatcher->addListener('OCP\Share::postUnshare', [self::class, 'shareModification']); $dispatcher->addListener('OCP\Share::postUnshareFromSelf', [self::class, 'shareModification']); |