summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/ServerFactory.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-12 14:01:13 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-05-05 22:03:59 +0200
commit829490ab7a02579c6b31573c3f53428e86cbf2e0 (patch)
tree1f644d168039ea1875398234419ace13f49dac5f /apps/dav/lib/Connector/Sabre/ServerFactory.php
parent0690646d09430ce363b07bc2cd59283e303314eb (diff)
downloadnextcloud-server-829490ab7a02579c6b31573c3f53428e86cbf2e0.tar.gz
nextcloud-server-829490ab7a02579c6b31573c3f53428e86cbf2e0.zip
Cleanup dav
- Remove unused class AppEnabledPlugin - Add more type hinting when possible Signed-off-by: Carl Schwan <carl@carlschwan.eu>
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);