Files
mail_manager/lib/Module.php
T
2026-07-19 06:55:01 -04:00

73 lines
1.8 KiB
PHP

<?php
namespace KTXM\MailManager;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleInstanceAbstract;
/**
* Mail Manager Module
*
* Provides unified mail sending and management across multiple providers
* with context-aware service discovery and queued delivery.
*/
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{
public function __construct()
{ }
public function handle(): string
{
return 'mail_manager';
}
public function label(): string
{
return 'Mail Manager';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'Mail management module for Ktrix - provides unified mail sending with provider abstraction and queue support';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [
'mail_manager' => [
'label' => 'Access Mail Manager',
'description' => 'View and access the mail manager module',
'group' => 'Mail Management'
],
'mail_manager.system' => [
'label' => 'Manage System Mail',
'description' => 'Manage system mail accounts and routing rules (act in the reserved system user context)',
'group' => 'Mail Management'
],
];
}
public function registerBI(): array {
return [
'handle' => $this->handle(),
'namespace' => 'MailManager',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
}
}