Skip to content

Commit 4bf0874

Browse files
committed
SymlinkManager: Move to correct namespace OC\Files and update all Plugins
Signed-off-by: Tamino Bauknecht <dev@tb6.eu>
1 parent 1aae62c commit 4bf0874

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

apps/dav/lib/BulkUpload/BulkUploadPlugin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
namespace OCA\DAV\BulkUpload;
2525

26+
use OC\Files\SymlinkManager;
2627
use OCA\DAV\Connector\Sabre\MtimeSanitizer;
2728
use OCP\AppFramework\Http;
2829
use OCP\Files\DavUtil;
@@ -38,7 +39,7 @@ class BulkUploadPlugin extends ServerPlugin {
3839
private LoggerInterface $logger;
3940

4041
/**
41-
* @var \OCP\Files\SymlinkManager
42+
* @var SymlinkManager
4243
*/
4344
private $symlinkManager;
4445

@@ -48,7 +49,7 @@ public function __construct(
4849
) {
4950
$this->userFolder = $userFolder;
5051
$this->logger = $logger;
51-
$this->symlinkManager = new \OCP\Files\SymlinkManager();
52+
$this->symlinkManager = new SymlinkManager();
5253
}
5354

5455
/**

apps/dav/lib/Connector/Sabre/FilesPlugin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
namespace OCA\DAV\Connector\Sabre;
3636

3737
use OC\AppFramework\Http\Request;
38+
use OC\Files\SymlinkManager;
3839
use OCP\Constants;
3940
use OCP\Files\ForbiddenException;
4041
use OCP\Files\StorageNotAvailableException;
@@ -104,7 +105,7 @@ class FilesPlugin extends ServerPlugin {
104105
private IConfig $config;
105106
private IRequest $request;
106107
private IPreview $previewManager;
107-
private \OCP\Files\SymlinkManager $symlinkManager;
108+
private SymlinkManager $symlinkManager;
108109

109110
public function __construct(Tree $tree,
110111
IConfig $config,
@@ -120,7 +121,7 @@ public function __construct(Tree $tree,
120121
$this->isPublic = $isPublic;
121122
$this->downloadAttachment = $downloadAttachment;
122123
$this->previewManager = $previewManager;
123-
$this->symlinkManager = new \OCP\Files\SymlinkManager();
124+
$this->symlinkManager = new SymlinkManager();
124125
}
125126

126127
/**

apps/dav/lib/Upload/SymlinkPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace OCA\DAV\Upload;
2727

28-
use OCP\Files\SymlinkManager;
28+
use OC\Files\SymlinkManager;
2929
use Psr\Log\LoggerInterface;
3030
use Sabre\DAV\Server;
3131
use Sabre\DAV\ServerPlugin;

lib/private/Files/SymlinkManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
*/
2222

23-
namespace OCP\Files;
23+
namespace OC\Files;
2424

2525
use OCP\Files\Storage\IStorage;
2626
use OCP\IDBConnection;

0 commit comments

Comments
 (0)