Initial commit

This commit is contained in:
root
2025-12-21 10:11:02 -05:00
committed by Sebastian Krupinski
commit b163df6bf7
7 changed files with 2446 additions and 0 deletions

73
lib/Module.php Normal file
View File

@@ -0,0 +1,73 @@
<?php
namespace KTXM\ProviderMailSystem;
use KTXC\Resource\ProviderManager;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleInstanceAbstract;
use KTXF\Resource\Provider\ProviderInterface;
use KTXM\ProviderMailSystem\Providers\Provider;
/**
* SMTP Mail Provider Module
*
* Provides outbound-only mail service via SMTP using Symfony Mailer.
*/
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{
public function __construct(
private readonly ProviderManager $providerManager,
) {}
public function handle(): string
{
return 'provider_mail_system';
}
public function label(): string
{
return 'System Mail Provider';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'System mail provider module for Ktrix - provides outbound mail delivery via SMTP';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [
'provider_mail_system' => [
'label' => 'Access System Mail Provider',
'description' => 'View and access the System mail provider module',
'group' => 'Mail Providers'
],
];
}
public function boot(): void
{
$this->providerManager->register(ProviderInterface::TYPE_MAIL, 'system', Provider::class);
}
public function registerBI(): array {
return [
'handle' => $this->handle(),
'namespace' => 'ProviderMailSystem',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description()
];
}
}