9179492026
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
69 lines
1.7 KiB
PHP
69 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace KTXM\MailManager;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
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
|
|
{
|
|
|
|
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 configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'MailManager', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|