Repo Interface für tests
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
namespace MintyPHP\Service\Security;
|
||||
|
||||
use MintyPHP\Repository\Security\RateLimitRepository;
|
||||
use MintyPHP\Repository\Security\RateLimitRepositoryInterface;
|
||||
|
||||
class SecurityRepositoryFactory
|
||||
{
|
||||
private ?RateLimitRepository $rateLimitRepository = null;
|
||||
|
||||
public function createRateLimitRepository(): RateLimitRepository
|
||||
public function createRateLimitRepository(): RateLimitRepositoryInterface
|
||||
{
|
||||
return $this->rateLimitRepository ??= new RateLimitRepository();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user