generated from Nodarx/template
ca4bae0b1e
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
37 lines
1.2 KiB
PHP
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');
|
|
}
|
|
}
|
|
}
|