Files
user_profile/lib/Module.php
T
2026-08-31 22:56:01 -04:00

57 lines
1.2 KiB
PHP

<?php
namespace KTXM\UserProfile;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract;
class Module extends ModuleInstanceAbstract
{
public function __construct()
{ }
public function handle(): string
{
return 'user_profile';
}
public function label(): string
{
return 'Profile & Settings';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'User profile management and settings.';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [
'user_profile' => [
'label' => 'Access Profile & Settings',
'description' => 'View and access the user profile and settings module',
'group' => 'User Profile'
],
];
}
public function configure(ModuleContextInterface $context): void
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'UserProfile', 'static/module.mjs');
}
}
}