Repo Interface für tests
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
|
||||
namespace MintyPHP\Service\Auth;
|
||||
|
||||
use MintyPHP\Repository\Auth\ApiTokenRepository;
|
||||
use MintyPHP\Repository\Auth\ApiTokenRepositoryInterface;
|
||||
use MintyPHP\Repository\Support\DatabaseSessionRepository;
|
||||
use MintyPHP\Repository\User\UserReadRepository;
|
||||
use MintyPHP\Repository\User\UserReadRepositoryInterface;
|
||||
|
||||
class ApiTokenService
|
||||
{
|
||||
private const MAX_TOKENS_PER_USER = 10;
|
||||
|
||||
public function __construct(
|
||||
private readonly UserReadRepository $userReadRepository,
|
||||
private readonly ApiTokenRepository $apiTokenRepository,
|
||||
private readonly UserReadRepositoryInterface $userReadRepository,
|
||||
private readonly ApiTokenRepositoryInterface $apiTokenRepository,
|
||||
private readonly AuthSettingsGateway $settingsGateway,
|
||||
private readonly AuthScopeGateway $scopeGateway,
|
||||
private readonly DatabaseSessionRepository $databaseSessionRepository
|
||||
|
||||
Reference in New Issue
Block a user