userManager->get($userId); if (!$user) { $output->writeln("User $userId not found"); return ExitCode::Failure; } $mounts = $this->mountProviderCollection->getMountsForUser($user); $mounts[] = $this->mountProviderCollection->getHomeMountForUser($user); $this->userMountCache->registerMounts($user, $mounts); $output->writeln('Registered ' . count($mounts) . ' mounts'); return ExitCode::Success; } }