diff options
author | Thomas Citharel <tcit@tcit.fr> | 2023-10-20 09:09:50 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2024-02-02 14:59:21 +0100 |
commit | 3be3dbdb3b4d707332a1c7edc1db378bc8e90375 (patch) | |
tree | de67a4b50e6002ab7fe506ab834c955cc917f86e | |
parent | 4c618c4bf14bce6120acd1d05d29772a7746784a (diff) | |
download | nextcloud-server-3be3dbdb3b4d707332a1c7edc1db378bc8e90375.tar.gz nextcloud-server-3be3dbdb3b4d707332a1c7edc1db378bc8e90375.zip |
refactor(objectstorage): move $user property from ObjectStoreStorage class to HomeObjectStoreStorage
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r-- | lib/private/Files/ObjectStore/HomeObjectStoreStorage.php | 3 | ||||
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 17 |
2 files changed, 6 insertions, 14 deletions
diff --git a/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php b/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php index b2d0bc3d478..feceb706e19 100644 --- a/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php @@ -7,6 +7,7 @@ * @author Jörn Friedrich Dreyer <jfd@butonic.de> * @author Morris Jobke <hey@morrisjobke.de> * @author Roeland Jago Douma <roeland@famdouma.nl> + * @author Thomas Citharel <nextcloud@tcit.fr> * * @license AGPL-3.0 * @@ -29,6 +30,8 @@ use OCP\Files\IHomeStorage; use OCP\IUser; class HomeObjectStoreStorage extends ObjectStoreStorage implements IHomeStorage { + protected IUser $user; + /** * The home user storage requires a user object to create a unique storage id * @param array $params diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index eb8aaffe1e0..5c2881bef0f 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -51,20 +51,9 @@ use OCP\Files\Storage\IStorage; class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFileWrite { use CopyDirectory; - /** - * @var \OCP\Files\ObjectStore\IObjectStore $objectStore - */ - protected $objectStore; - /** - * @var string $id - */ - protected $id; - /** - * @var \OC\User\User $user - */ - protected $user; - - private $objectPrefix = 'urn:oid:'; + protected IObjectStore $objectStore; + protected string $id; + private string $objectPrefix = 'urn:oid:'; private $logger; |