diff --git a/lib/private/Files/Config/MountProviderCollection.php b/lib/private/Files/Config/MountProviderCollection.php index 9d63184e05f..a6e05eb1f8c 100644 --- a/lib/private/Files/Config/MountProviderCollection.php +++ b/lib/private/Files/Config/MountProviderCollection.php @@ -81,6 +81,9 @@ class MountProviderCollection implements IMountProviderCollection, Emitter { } /** + * Returns the mounts for the user from the specified provider classes. + * Providers not registered in the MountProviderCollection will be skipped. + * * @return list */ public function getUserMountsForProviderClasses(IUser $user, array $mountProviderClasses): array { diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index b92c608a81d..e646dacf0bc 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -60,7 +60,11 @@ class SetupManager { private array $setupUsers = []; // List of users for which all mounts are setup private array $setupUsersComplete = []; - /** @var array */ + /** + * An array of provider classes that have been set up, indexed by UserUID. + * + * @var array[]> + */ private array $setupUserMountProviders = []; private ICache $cache; private bool $listeningForProviders; @@ -213,7 +217,7 @@ class SetupManager { } /** - * part of the user setup that is run only once per user + * Part of the user setup that is run only once per user. */ private function oneTimeUserSetup(IUser $user) { if ($this->isSetupStarted($user)) { @@ -303,11 +307,16 @@ class SetupManager { } /** + * Executes the one-time user setup and, if the user can access the + * filesystem, executes $mountCallback. + * * @param IUser $user * @param IMountPoint $mounts * @return void * @throws \OCP\HintException * @throws \OC\ServerNotAvailableException + * @see self::oneTimeUserSetup() + * */ private function setupForUserWith(IUser $user, callable $mountCallback): void { $this->oneTimeUserSetup($user);