diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-01-07 21:29:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 21:29:13 +0100 |
commit | 275f15c1fb38175468cb06ecaeedeb402b64c8d2 (patch) | |
tree | 7a4ed88593aa28c243d09ec5c56fbdb6a1e251b1 /apps/files_external/lib/Lib | |
parent | 171373a9442ee5af5b42b3989afbe2fa7ad99fbd (diff) | |
parent | 35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0 (diff) | |
download | nextcloud-server-275f15c1fb38175468cb06ecaeedeb402b64c8d2.tar.gz nextcloud-server-275f15c1fb38175468cb06ecaeedeb402b64c8d2.zip |
Merge pull request #23261 from nextcloud/enh/external-storage-session-type
Expose session based authentication through mount point type
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r-- | apps/files_external/lib/Lib/PersonalMount.php | 6 |
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; } |