Skip to content

Commit

Permalink
refactor(objectstorage): move $user property from ObjectStoreStorage …
Browse files Browse the repository at this point in the history
…class to HomeObjectStoreStorage

Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Feb 2, 2024
1 parent 4c618c4 commit 3be3dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
3 changes: 3 additions & 0 deletions lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @author Jörn Friedrich Dreyer <[email protected]>
* @author Morris Jobke <[email protected]>
* @author Roeland Jago Douma <[email protected]>
* @author Thomas Citharel <[email protected]>
*
* @license AGPL-3.0
*
Expand All @@ -29,6 +30,8 @@
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
Expand Down
17 changes: 3 additions & 14 deletions lib/private/Files/ObjectStore/ObjectStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,9 @@
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;

Expand Down

0 comments on commit 3be3dbd

Please sign in to comment.