diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-09-24 17:15:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 17:15:39 +0200 |
commit | 280f6df66c199b9e72c23ffa921bbdad7c68d3c0 (patch) | |
tree | b26ff144caabbe4094fbdd710dc6dfbab9b0cd22 /lib/public | |
parent | e247c260715c0dc7db7b4c0649413bed2629aafa (diff) | |
parent | 4adf5fd5b0f409d9f6bd7ffd8b4293e4a1cfa03c (diff) | |
download | nextcloud-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/public')
-rw-r--r-- | lib/public/Files/Events/BeforeFileSystemSetupEvent.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/public/Files/Events/BeforeFileSystemSetupEvent.php b/lib/public/Files/Events/BeforeFileSystemSetupEvent.php new file mode 100644 index 00000000000..23791aa6ec1 --- /dev/null +++ b/lib/public/Files/Events/BeforeFileSystemSetupEvent.php @@ -0,0 +1,36 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ + +namespace OCP\Files\Events; + +use OCP\EventDispatcher\Event; +use OCP\IUser; + +/** + * Event triggered before the file system is setup + * + * @since 31.0.0 + */ +class BeforeFileSystemSetupEvent extends Event { + /** + * @since 31.0.0 + */ + public function __construct( + private IUser $user, + ) { + parent::__construct(); + } + + /** + * @since 31.0.0 + */ + public function getUser(): IUser { + return $this->user; + } +} |