major update
This commit is contained in:
@@ -6,12 +6,15 @@ use MintyPHP\Repository\Security\RateLimitRepository;
|
||||
|
||||
class SecurityServicesFactory
|
||||
{
|
||||
private ?RateLimitRepository $rateLimitRepository = null;
|
||||
private ?RateLimiterService $rateLimiterService = null;
|
||||
|
||||
public function __construct(
|
||||
private readonly SecurityRepositoryFactory $securityRepositoryFactory
|
||||
) {}
|
||||
|
||||
public function createRateLimitRepository(): RateLimitRepository
|
||||
{
|
||||
return $this->rateLimitRepository ??= new RateLimitRepository();
|
||||
return $this->securityRepositoryFactory->createRateLimitRepository();
|
||||
}
|
||||
|
||||
public function createRateLimiterService(): RateLimiterService
|
||||
|
||||
Reference in New Issue
Block a user