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