generated from Nodarx/template
refactor: split service into ServiceBase and LiveService
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user