aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-09-24 17:15:39 +0200
committerGitHub <noreply@github.com>2024-09-24 17:15:39 +0200
commit280f6df66c199b9e72c23ffa921bbdad7c68d3c0 (patch)
treeb26ff144caabbe4094fbdd710dc6dfbab9b0cd22 /lib/private
parente247c260715c0dc7db7b4c0649413bed2629aafa (diff)
parent4adf5fd5b0f409d9f6bd7ffd8b4293e4a1cfa03c (diff)
downloadnextcloud-server-280f6df66c199b9e72c23ffa921bbdad7c68d3c0.tar.gz
nextcloud-server-280f6df66c199b9e72c23ffa921bbdad7c68d3c0.zip
Merge pull request #32018 from nextcloud/cleanup/event/trashbin
Port files trashbin events to IEventDispatcher/IEventListener
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/SetupManager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 44c70bb5f3d..befbf4fff46 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -35,6 +35,7 @@ use OCP\Files\Config\ICachedMountInfo;
use OCP\Files\Config\IHomeMountProvider;
use OCP\Files\Config\IMountProvider;
use OCP\Files\Config\IUserMountCache;
+use OCP\Files\Events\BeforeFileSystemSetupEvent;
use OCP\Files\Events\InvalidateMountCacheEvent;
use OCP\Files\Events\Node\FilesystemTornDownEvent;
use OCP\Files\Mount\IMountManager;
@@ -227,8 +228,12 @@ class SetupManager {
$prevLogging = Filesystem::logWarningWhenAddingStorageWrapper(false);
+ // TODO remove hook
OC_Hook::emit('OC_Filesystem', 'preSetup', ['user' => $user->getUID()]);
+ $event = new BeforeFileSystemSetupEvent($user);
+ $this->eventDispatcher->dispatchTyped($event);
+
Filesystem::logWarningWhenAddingStorageWrapper($prevLogging);
$userDir = '/' . $user->getUID() . '/files';