getRequest()->getRequestUri(); /** @var ServerFactory $serverFactory */ $serverFactory = \OC::$server->query(ServerFactory::class); $server = $serverFactory->createServer( $baseuri, $requestUri, \OC::$server->getRootFolder(), \OC::$server->query(\OCA\DAV\Db\DirectMapper::class), \OC::$server->query(\OCP\AppFramework\Utility\ITimeFactory::class), \OC::$server->getBruteForceThrottler(), \OC::$server->getRequest() ); $server->exec();