Files
2026-08-31 22:55:11 -04:00

70 lines
1.6 KiB
PHP

<?php
namespace KTXM\PeopleManager;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract;
/**
* People Manager Module
*/
class Module extends ModuleInstanceAbstract
{
public function __construct()
{ }
public function boot(): void
{
// Load module-local vendored dependencies (e.g. sabre/vobject for VCF import).
$vendorAutoload = __DIR__ . '/vendor/autoload.php';
if (file_exists($vendorAutoload)) {
require_once $vendorAutoload;
}
}
public function handle(): string
{
return 'people_manager';
}
public function label(): string
{
return 'People Manager';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'People management module for Ktrix - provides user and group management functionalities';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [
'people_manager' => [
'label' => 'Access People Manager',
'description' => 'View and access the people manager module',
'group' => 'People Management'
],
];
}
public function configure(ModuleContextInterface $context): void
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'PeopleManager', 'static/module.mjs');
}
}
}