Allow adding object stores with the files_external mount config
This commit is contained in:
parent
159b603d13
commit
544963f414
1 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,10 @@ class OC_Mount_Config {
|
||||||
$loader = \OC\Files\Filesystem::getLoader();
|
$loader = \OC\Files\Filesystem::getLoader();
|
||||||
$manager = \OC\Files\Filesystem::getMountManager();
|
$manager = \OC\Files\Filesystem::getMountManager();
|
||||||
foreach ($mountPoints as $mountPoint => $options) {
|
foreach ($mountPoints as $mountPoint => $options) {
|
||||||
|
if (isset($options['options']['objectstore'])) {
|
||||||
|
$objectClass = $options['options']['objectstore']['class'];
|
||||||
|
$options['options']['objectstore'] = new $objectClass($options['options']['objectstore']);
|
||||||
|
}
|
||||||
if ($options['personal']){
|
if ($options['personal']){
|
||||||
$mount = new \OCA\Files_External\PersonalMount($options['class'], $mountPoint, $options['options'], $loader);
|
$mount = new \OCA\Files_External\PersonalMount($options['class'], $mountPoint, $options['options'], $loader);
|
||||||
} else{
|
} else{
|
||||||
|
|
Loading…
Reference in a new issue