refactor(objectstorage): move $user property from ObjectStoreStorage class to HomeObjectStoreStorage

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/40981/head
Thomas Citharel 8 months ago
parent 4c618c4bf1
commit 3be3dbdb3b
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

@ -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

@ -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;

Loading…
Cancel
Save