@@ -36,8 +36,8 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
3636 /** @var UserStoragesService */
3737 protected $ storagesService ;
3838
39- /** @var int */
40- protected $ numericStorageId ;
39+ /** @var int id of the external storage (mount) (not the numeric id of the resulting storage!) */
40+ protected $ numericExternalStorageId ;
4141
4242 /**
4343 * @param UserStoragesService $storagesService
@@ -51,7 +51,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
5151 public function __construct (
5252 UserStoragesService $ storagesService ,
5353 StorageConfig $ storageConfig ,
54- $ storageId ,
54+ $ externalStorageId ,
5555 $ storage ,
5656 $ mountpoint ,
5757 $ arguments = null ,
@@ -61,7 +61,7 @@ public function __construct(
6161 ) {
6262 parent ::__construct ($ storageConfig , $ storage , $ mountpoint , $ arguments , $ loader , $ mountOptions , $ mountId );
6363 $ this ->storagesService = $ storagesService ;
64- $ this ->numericStorageId = $ storageId ;
64+ $ this ->numericExternalStorageId = $ externalStorageId ;
6565 }
6666
6767 /**
@@ -71,7 +71,7 @@ public function __construct(
7171 * @return bool
7272 */
7373 public function moveMount ($ target ) {
74- $ storage = $ this ->storagesService ->getStorage ($ this ->numericStorageId );
74+ $ storage = $ this ->storagesService ->getStorage ($ this ->numericExternalStorageId );
7575 // remove "/$user/files" prefix
7676 $ targetParts = explode ('/ ' , trim ($ target , '/ ' ), 3 );
7777 $ storage ->setMountPoint ($ targetParts [2 ]);
@@ -86,7 +86,7 @@ public function moveMount($target) {
8686 * @return bool
8787 */
8888 public function removeMount () {
89- $ this ->storagesService ->removeStorage ($ this ->numericStorageId );
89+ $ this ->storagesService ->removeStorage ($ this ->numericExternalStorageId );
9090 return true ;
9191 }
9292}
0 commit comments