Use the FailedStorage instead

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-08-29 13:37:13 +02:00
parent 5df5b9c8b1
commit 442d4ed24a
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 1 additions and 31 deletions

View File

@ -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)
;
}

View File

@ -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();
}
}