summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-29 13:37:13 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-09-04 11:54:13 +0200
commit442d4ed24a713cf5f9fc582ca284b0b740940c6b (patch)
treef8e5c3ed0273aea55626b924ba6d2f5476b0ef6d /apps/files_external
parent5df5b9c8b13770142eab82e889eed5e50da5fab3 (diff)
downloadnextcloud-server-442d4ed24a713cf5f9fc582ca284b0b740940c6b.tar.gz
nextcloud-server-442d4ed24a713cf5f9fc582ca284b0b740940c6b.zip
Use the FailedStorage instead
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Backend/InvalidBackend.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/InvalidStorage.php30
2 files changed, 1 insertions, 31 deletions
diff --git a/apps/files_external/lib/Lib/Backend/InvalidBackend.php b/apps/files_external/lib/Lib/Backend/InvalidBackend.php
index 1a426c4bbb7..c3c5ca0cac7 100644
--- a/apps/files_external/lib/Lib/Backend/InvalidBackend.php
+++ b/apps/files_external/lib/Lib/Backend/InvalidBackend.php
@@ -40,7 +40,7 @@ class InvalidBackend extends Backend {
$this->invalidId = $invalidId;
$this
->setIdentifier($invalidId)
- ->setStorageClass('\OCA\Files_External\Lib\Storage\InvalidStorage')
+ ->setStorageClass('\OC\Files\Storage\FailedStorage')
->setText('Unknown storage backend ' . $invalidId)
;
}
diff --git a/apps/files_external/lib/Lib/Storage/InvalidStorage.php b/apps/files_external/lib/Lib/Storage/InvalidStorage.php
deleted file mode 100644
index bc4ecee8369..00000000000
--- a/apps/files_external/lib/Lib/Storage/InvalidStorage.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/**
- * @author Vincent Petry <pvince81@owncloud.com>
- *
- * @copyright Copyright (c) 2016, ownCloud GmbH.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-namespace OCA\Files_External\Lib\Storage;
-
-use OCP\Files\StorageNotAvailableException;
-
-class InvalidStorage {
- public function __construct($params) {
- throw new StorageNotAvailableException();
- }
-}