Files
firewall_manager/lib/Module.php
T
2026-08-31 22:55:11 -04:00

37 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
namespace KTXM\FirewallManager;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract;
final class Module extends ModuleInstanceAbstract
{
public function handle(): string { return 'firewall_manager'; }
public function label(): string { return 'Firewall Manager'; }
public function author(): string { return 'Ktrix'; }
public function description(): string { return 'Administrative interface for firewall rules, logs, metrics, and settings'; }
public function version(): string { return '0.0.1'; }
public function permissions(): array
{
return [
'firewall_manager.access' => [
'label' => 'Access Firewall Manager',
'description' => 'Access the firewall administration interface',
'group' => 'Firewall Management',
],
];
}
public function configure(ModuleContextInterface $context): void
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'FirewallManager', 'static/module.mjs');
}
}
}