nextcloud/lib/public/Files/Config/Event/UserMountAddedEvent.php
provokateurin a8b96fd4f8
feat(UserMountCache): Emit events for added, removed and updated mounts
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-26 08:34:45 +02:00

32 lines
617 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Files\Config\Event;
use OCP\EventDispatcher\Event;
use OCP\Files\Config\ICachedMountInfo;
use OCP\Files\Mount\IMountPoint;
/**
* Event emitted when a user mount was added.
*
* @since 31.0.6
*/
class UserMountAddedEvent extends Event {
/**
* Creates a new @see UserMountAddedEvent
*
* @since 31.0.6
*/
public function __construct(
public readonly IMountPoint|ICachedMountInfo $mountPoint,
) {
parent::__construct();
}
}