generated from Nodarx/template
56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KTXM\ServiceDav;
|
|
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
public function handle(): string
|
|
{
|
|
return 'service_dav';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'DAV Service';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'WebDAV / CalDAV / CardDAV service — exposes files, calendars, and contacts to DAV clients';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'service_dav.access' => [
|
|
'label' => 'Access DAV Service',
|
|
'description' => 'Allow access to the WebDAV / CalDAV / CardDAV service',
|
|
'group' => 'DAV Service',
|
|
],
|
|
];
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
// Load sabre/dav and its dependencies from the module-local vendor directory.
|
|
$vendorAutoload = __DIR__ . '/vendor/autoload.php';
|
|
if (file_exists($vendorAutoload)) {
|
|
require_once $vendorAutoload;
|
|
}
|
|
}
|
|
}
|