1
0

IHomeMountProvider.php 622 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Files\Config;
  8. use OCP\Files\Storage\IStorageFactory;
  9. use OCP\IUser;
  10. /**
  11. * Provides
  12. *
  13. * @since 9.1.0
  14. */
  15. interface IHomeMountProvider {
  16. /**
  17. * Get all mountpoints applicable for the user
  18. *
  19. * @param \OCP\IUser $user
  20. * @param \OCP\Files\Storage\IStorageFactory $loader
  21. * @return \OCP\Files\Mount\IMountPoint|null
  22. * @since 9.1.0
  23. */
  24. public function getHomeMountForUser(IUser $user, IStorageFactory $loader);
  25. }