aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command/Applicable.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Command/Applicable.php')
-rw-r--r--apps/files_external/lib/Command/Applicable.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/lib/Command/Applicable.php b/apps/files_external/lib/Command/Applicable.php
index e7305f58671..ecb635c052a 100644
--- a/apps/files_external/lib/Command/Applicable.php
+++ b/apps/files_external/lib/Command/Applicable.php
@@ -10,13 +10,13 @@ use OC\Core\Command\Base;
use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\NotFoundException;
use OCA\Files_External\Service\GlobalStoragesService;
+use OCP\AppFramework\Http;
use OCP\IGroupManager;
use OCP\IUserManager;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\HttpFoundation\Response;
class Applicable extends Base {
public function __construct(
@@ -70,7 +70,7 @@ class Applicable extends Base {
$mount = $this->globalService->getStorage($mountId);
} catch (NotFoundException $e) {
$output->writeln('<error>Mount with id "' . $mountId . ' not found, check "occ files_external:list" to get available mounts</error>');
- return Response::HTTP_NOT_FOUND;
+ return Http::STATUS_NOT_FOUND;
}
if ($mount->getType() === StorageConfig::MOUNT_TYPE_PERSONAL) {
@@ -90,13 +90,13 @@ class Applicable extends Base {
foreach ($addUsers as $addUser) {
if (!$this->userManager->userExists($addUser)) {
$output->writeln('<error>User "' . $addUser . '" not found</error>');
- return Response::HTTP_NOT_FOUND;
+ return Http::STATUS_NOT_FOUND;
}
}
foreach ($addGroups as $addGroup) {
if (!$this->groupManager->groupExists($addGroup)) {
$output->writeln('<error>Group "' . $addGroup . '" not found</error>');
- return Response::HTTP_NOT_FOUND;
+ return Http::STATUS_NOT_FOUND;
}
}