2026-03-04 15:56:58 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Service\Security;
|
|
|
|
|
|
|
|
|
|
use MintyPHP\Repository\Security\RateLimitRepository;
|
2026-03-05 08:26:51 +01:00
|
|
|
use MintyPHP\Repository\Security\RateLimitRepositoryInterface;
|
2026-03-04 15:56:58 +01:00
|
|
|
|
|
|
|
|
class SecurityRepositoryFactory
|
|
|
|
|
{
|
|
|
|
|
private ?RateLimitRepository $rateLimitRepository = null;
|
|
|
|
|
|
2026-03-05 08:26:51 +01:00
|
|
|
public function createRateLimitRepository(): RateLimitRepositoryInterface
|
2026-03-04 15:56:58 +01:00
|
|
|
{
|
|
|
|
|
return $this->rateLimitRepository ??= new RateLimitRepository();
|
|
|
|
|
}
|
|
|
|
|
}
|