Skip to content

Commit

Permalink
SymlinkManager: Move to correct namespace OC\Files and update all Plu…
Browse files Browse the repository at this point in the history
…gins
  • Loading branch information
taminob committed Dec 6, 2023
1 parent 7adc1e5 commit dc4ad03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions apps/dav/lib/BulkUpload/BulkUploadPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace OCA\DAV\BulkUpload;

use OC\Files\SymlinkManager;
use OCA\DAV\Connector\Sabre\MtimeSanitizer;
use OCP\AppFramework\Http;
use OCP\Files\DavUtil;
Expand All @@ -38,7 +39,7 @@ class BulkUploadPlugin extends ServerPlugin {
private LoggerInterface $logger;

/**
* @var \OCP\Files\SymlinkManager
* @var SymlinkManager
*/
private $symlinkManager;

Expand All @@ -48,7 +49,7 @@ public function __construct(
) {
$this->userFolder = $userFolder;
$this->logger = $logger;
$this->symlinkManager = new \OCP\Files\SymlinkManager();
$this->symlinkManager = new SymlinkManager();
}

/**
Expand Down
5 changes: 3 additions & 2 deletions apps/dav/lib/Connector/Sabre/FilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
namespace OCA\DAV\Connector\Sabre;

use OC\AppFramework\Http\Request;
use OC\Files\SymlinkManager;
use OCP\Constants;
use OCP\Files\ForbiddenException;
use OCP\Files\StorageNotAvailableException;
Expand Down Expand Up @@ -104,7 +105,7 @@ class FilesPlugin extends ServerPlugin {
private IConfig $config;
private IRequest $request;
private IPreview $previewManager;
private \OCP\Files\SymlinkManager $symlinkManager;
private SymlinkManager $symlinkManager;

public function __construct(Tree $tree,
IConfig $config,
Expand All @@ -120,7 +121,7 @@ public function __construct(Tree $tree,
$this->isPublic = $isPublic;
$this->downloadAttachment = $downloadAttachment;
$this->previewManager = $previewManager;
$this->symlinkManager = new \OCP\Files\SymlinkManager();
$this->symlinkManager = new SymlinkManager();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Upload/SymlinkPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace OCA\DAV\Upload;

use OCP\Files\SymlinkManager;
use OC\Files\SymlinkManager;
use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;
use Sabre\HTTP\RequestInterface;
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/SymlinkManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

namespace OCP\Files;
namespace OC\Files;

use OCP\Files\Storage\IStorage;
use OCP\IDBConnection;
Expand Down

0 comments on commit dc4ad03

Please sign in to comment.