make sure we actually have an object store
This commit is contained in:
parent
efeef958a3
commit
d14252d9c7
|
@ -74,6 +74,9 @@ class ConfigAdapter implements IMountProvider {
|
|||
$objectStore = $storage->getBackendOption('objectstore');
|
||||
if ($objectStore) {
|
||||
$objectClass = $objectStore['class'];
|
||||
if (!is_subclass_of($objectClass, '\OCP\Files\ObjectStore\IObjectStore')) {
|
||||
throw new \InvalidArgumentException('Invalid object store');
|
||||
}
|
||||
$storage->setBackendOption('objectstore', new $objectClass($objectStore));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue