19declare(strict_types=1);
21use Psr\Http\Message\RequestInterface;
31 private RequestInterface $request,
39 $uri = $this->request->getUri()->getPath();
41 $splitted_uri = explode(
'/', $uri);
44 while (array_shift($splitted_uri) !==
'webdav.php' && $splitted_uri !== []) {
48 $path_value = $splitted_uri[1] ??
'';
50 if (strlen($path_value) === 2) {
59 if (str_starts_with($path_value,
'ref_')) {
64 $this->
user->getLanguage(),
65 (
int) substr($path_value, 4)
69 throw new InvalidArgumentException(
"Invalid path given");
__construct(private ilWebDAVMountInstructionsRepositoryImpl $repo, private RequestInterface $request, private ilObjUser $user)
getMountInstructionsObject()