aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command/Create.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-02 23:27:44 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-02 23:27:44 +0200
commit96f77d7b99d231d2ec16ee618ec9a2e6b5aa8500 (patch)
tree0d349f8ef512e611a3fb8582b75ff5e0509029ed /apps/files_external/lib/Command/Create.php
parent004d7dac91b8e6759f0279e6f932fe03d6203ba2 (diff)
downloadnextcloud-server-96f77d7b99d231d2ec16ee618ec9a2e6b5aa8500.tar.gz
nextcloud-server-96f77d7b99d231d2ec16ee618ec9a2e6b5aa8500.zip
fix(filesexternal): Remove unneeded 3rdparty library usebugfix/noid/remove-3rdparty-use
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_external/lib/Command/Create.php')
-rw-r--r--apps/files_external/lib/Command/Create.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/lib/Command/Create.php b/apps/files_external/lib/Command/Create.php
index 0183b3014c8..4396d2e2b13 100644
--- a/apps/files_external/lib/Command/Create.php
+++ b/apps/files_external/lib/Command/Create.php
@@ -17,6 +17,7 @@ use OCA\Files_External\Service\BackendService;
use OCA\Files_External\Service\GlobalStoragesService;
use OCA\Files_External\Service\StoragesService;
use OCA\Files_External\Service\UserStoragesService;
+use OCP\AppFramework\Http;
use OCP\IUserManager;
use OCP\IUserSession;
use Symfony\Component\Console\Input\ArrayInput;
@@ -24,7 +25,6 @@ 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 Create extends Base {
public function __construct(
@@ -93,11 +93,11 @@ class Create extends Base {
}
if (is_null($storageBackend)) {
$output->writeln('<error>Storage backend with identifier "' . $storageIdentifier . '" not found (see `occ files_external:backends` for possible values)</error>');
- return Response::HTTP_NOT_FOUND;
+ return Http::STATUS_NOT_FOUND;
}
if (is_null($authBackend)) {
$output->writeln('<error>Authentication backend with identifier "' . $authIdentifier . '" not found (see `occ files_external:backends` for possible values)</error>');
- return Response::HTTP_NOT_FOUND;
+ return Http::STATUS_NOT_FOUND;
}
$supportedSchemes = array_keys($storageBackend->getAuthSchemes());
if (!in_array($authBackend->getScheme(), $supportedSchemes)) {