refactor: split service into ServiceBase and LiveService

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-10-07 21:49:31 -04:00
parent eea9b5630a
commit 4e12d41ee9
18 changed files with 649 additions and 516 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ namespace KTXM\ProviderImap\Stores;
use KTXC\Db\DataStore;
use KTXF\Security\Crypto;
use KTXF\Utile\UUID;
use KTXM\ProviderImap\Providers\Service;
use KTXM\ProviderImap\Providers\ServiceBase;
/**
* IMAP Service Store
@@ -114,7 +114,7 @@ class ServiceStore
/**
* Create a new service
*/
public function create(string $tenantId, string $userId, Service $service): array
public function create(string $tenantId, string $userId, ServiceBase $service): array
{
$document = $service->toStore();
@@ -136,7 +136,7 @@ class ServiceStore
/**
* Modify an existing service
*/
public function modify(string $tenantId, string $userId, Service $service): array
public function modify(string $tenantId, string $userId, ServiceBase $service): array
{
$serviceId = $service->identifier();
if (empty($serviceId)) {