summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/ServerFactory.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-17 14:59:59 +0200
committerGitHub <noreply@github.com>2022-05-17 14:59:59 +0200
commit07c9bf1adff8a2d10ff774da32c2ddd54fd01923 (patch)
tree97f83709746d15a63f1ada29607f7c972378d183 /apps/dav/lib/Connector/Sabre/ServerFactory.php
parenta4f23b17a94078addec014e07229121ae8dac8bb (diff)
parentf7be76125f885d66caac4a8d6697e121dce52708 (diff)
downloadnextcloud-server-07c9bf1adff8a2d10ff774da32c2ddd54fd01923.tar.gz
nextcloud-server-07c9bf1adff8a2d10ff774da32c2ddd54fd01923.zip
Merge pull request #31943 from nextcloud/dav-cleanup
Cleanup dav
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/ServerFactory.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/ServerFactory.php37
1 files changed, 12 insertions, 25 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ServerFactory.php b/apps/dav/lib/Connector/Sabre/ServerFactory.php
index 635645ed992..8f1f710ca5e 100644
--- a/apps/dav/lib/Connector/Sabre/ServerFactory.php
+++ b/apps/dav/lib/Connector/Sabre/ServerFactory.php
@@ -48,25 +48,16 @@ use Sabre\DAV\Auth\Plugin;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class ServerFactory {
- /** @var IConfig */
- private $config;
+ private IConfig $config;
private LoggerInterface $logger;
- /** @var IDBConnection */
- private $databaseConnection;
- /** @var IUserSession */
- private $userSession;
- /** @var IMountManager */
- private $mountManager;
- /** @var ITagManager */
- private $tagManager;
- /** @var IRequest */
- private $request;
- /** @var IPreview */
- private $previewManager;
- /** @var EventDispatcherInterface */
- private $eventDispatcher;
- /** @var IL10N */
- private $l10n;
+ private IDBConnection $databaseConnection;
+ private IUserSession $userSession;
+ private IMountManager $mountManager;
+ private ITagManager $tagManager;
+ private IRequest $request;
+ private IPreview $previewManager;
+ private EventDispatcherInterface $eventDispatcher;
+ private IL10N $l10n;
public function __construct(
IConfig $config,
@@ -93,16 +84,12 @@ class ServerFactory {
}
/**
- * @param string $baseUri
- * @param string $requestUri
- * @param Plugin $authPlugin
* @param callable $viewCallBack callback that should return the view for the dav endpoint
- * @return Server
*/
- public function createServer($baseUri,
- $requestUri,
+ public function createServer(string $baseUri,
+ string $requestUri,
Plugin $authPlugin,
- callable $viewCallBack) {
+ callable $viewCallBack): Server {
// Fire up server
$objectTree = new \OCA\DAV\Connector\Sabre\ObjectTree();
$server = new \OCA\DAV\Connector\Sabre\Server($objectTree);