instances added god may help
This commit is contained in:
23
lib/Service/Auth/AuthTenantGateway.php
Normal file
23
lib/Service/Auth/AuthTenantGateway.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\Auth;
|
||||
|
||||
use MintyPHP\Repository\Tenant\TenantRepository;
|
||||
|
||||
class AuthTenantGateway
|
||||
{
|
||||
public function findById(int $tenantId): ?array
|
||||
{
|
||||
return (new TenantRepository())->find($tenantId);
|
||||
}
|
||||
|
||||
public function findByUuid(string $uuid): ?array
|
||||
{
|
||||
return (new TenantRepository())->findByUuid($uuid);
|
||||
}
|
||||
|
||||
public function list(): array
|
||||
{
|
||||
return (new TenantRepository())->list();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user