ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWebDAVSabreBrowserPlugin.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use Psr\Http\Message\UriInterface;
22use Sabre\DAV\Browser\Plugin;
23
27class ilWebDAVSabreBrowserPlugin extends Plugin
28{
30
31 public function __construct(protected ilCtrlInterface $ctrl, UriInterface $uri)
32 {
33 $this->mount_instruction_path = $uri->getScheme() . '://';
34 $this->mount_instruction_path .= $uri->getHost();
35 $this->mount_instruction_path .= $uri->getPath();
36 $this->mount_instruction_path .= "?mount-instructions";
38 }
39
43 #[\Override]
45 {
46 // return parent::generateDirectoryIndex($path);
47 $this->ctrl->redirectToURL($this->mount_instruction_path);
48 return '';
49 }
50}
The only purpose for this class is to redirect a browsers WebDAV-Request to the mount-instructions pa...
__construct(protected ilCtrlInterface $ctrl, UriInterface $uri)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$path
Definition: ltiservices.php:30
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc