aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-10-07 15:31:03 +0200
committerJulius Härtl <jus@bitgrid.net>2020-12-21 22:55:06 +0100
commit35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0 (patch)
tree5d2159d6b011bce9d93e9c56bd8ae5e49bddc7db /apps/files_external/lib/Lib
parentb37397d4fc39196f49a3d1e858e9c0ad7e119793 (diff)
downloadnextcloud-server-35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0.tar.gz
nextcloud-server-35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0.zip
Expose session based authentication through mount point type
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r--apps/files_external/lib/Lib/PersonalMount.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/PersonalMount.php b/apps/files_external/lib/Lib/PersonalMount.php
index 8f3a127632e..d8f2aeea56e 100644
--- a/apps/files_external/lib/Lib/PersonalMount.php
+++ b/apps/files_external/lib/Lib/PersonalMount.php
@@ -28,6 +28,7 @@ namespace OCA\Files_External\Lib;
use OC\Files\Mount\MoveableMount;
use OCA\Files_External\Config\ExternalMountPoint;
use OCA\Files_External\Service\UserStoragesService;
+use OCP\Files\Storage\IStorage;
/**
* Person mount points can be moved by the user
@@ -42,7 +43,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
/**
* @param UserStoragesService $storagesService
* @param int $storageId
- * @param \OCP\Files\Storage $storage
+ * @param IStorage $storage
* @param string $mountpoint
* @param array $arguments (optional) configuration for the storage backend
* @param \OCP\Files\Storage\IStorageFactory $loader
@@ -50,6 +51,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
*/
public function __construct(
UserStoragesService $storagesService,
+ StorageConfig $storageConfig,
$storageId,
$storage,
$mountpoint,
@@ -58,7 +60,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
$mountOptions = null,
$mountId = null
) {
- parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
+ parent::__construct($storageConfig, $storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
$this->storagesService = $storagesService;
$this->numericStorageId = $storageId;
}