Properly add new methods to interface and document in PHPDoc for getRootMounts()

Introduced in #22063 and was just forgotten.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/22271/head
Morris Jobke 6 years ago
parent f6daf17fa7
commit e47cfc9a54
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 6
      lib/private/Files/Config/MountProviderCollection.php
  2. 1
      lib/private/legacy/OC_Util.php
  3. 8
      lib/public/Files/Config/IMountProviderCollection.php
  4. 2
      lib/public/Files/Config/IRootMountProvider.php

@ -207,6 +207,12 @@ class MountProviderCollection implements IMountProviderCollection, Emitter {
$this->rootProviders[] = $provider;
}
/**
* Get all root mountpoints
*
* @return \OCP\Files\Mount\IMountPoint[]
* @since 20.0.0
*/
public function getRootMounts(): array {
$loader = $this->loader;
$mounts = array_map(function (IRootMountProvider $provider) use ($loader) {

@ -299,7 +299,6 @@ class OC_Util {
/** @var \OCP\Files\Config\IMountProviderCollection $mountProviderCollection */
$mountProviderCollection = \OC::$server->query(\OCP\Files\Config\IMountProviderCollection::class);
/** @var \OCP\Files\Mount\IMountPoint[] $rootMountProviders */
$rootMountProviders = $mountProviderCollection->getRootMounts();
/** @var \OC\Files\Mount\Manager $mountManager */

@ -79,4 +79,12 @@ interface IMountProviderCollection {
* @since 9.0.0
*/
public function getMountCache();
/**
* Get all root mountpoints
*
* @return \OCP\Files\Mount\IMountPoint[]
* @since 20.0.0
*/
public function getRootMounts(): array;
}

@ -32,7 +32,7 @@ use OCP\Files\Storage\IStorageFactory;
*/
interface IRootMountProvider {
/**
* Get all root mountpoints
* Get all root mountpoints of this provider
*
* @return \OCP\Files\Mount\IMountPoint[]
* @since 20.0.0

Loading…
Cancel
Save