aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-28 15:50:45 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-28 15:50:45 +0200
commit25309bcb45232bf30fe719bac1776f0136f7cd7a (patch)
tree7cfa6dacd42f22a854b895c2ae5853ff1725d96b /lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php
parentac3d7e3a7e9848c5e134b79f481d73416cc810f4 (diff)
downloadnextcloud-server-25309bcb45232bf30fe719bac1776f0136f7cd7a.tar.gz
nextcloud-server-25309bcb45232bf30fe719bac1776f0136f7cd7a.zip
techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php')
-rw-r--r--lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php b/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php
index a0b915588ad..574e86a9ca2 100644
--- a/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php
@@ -29,7 +29,6 @@ declare(strict_types=1);
namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Utility\ControllerMethodReflector;
-use OC\Security\Bruteforce\Throttler;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\BruteForceProtection;
@@ -39,6 +38,7 @@ use OCP\AppFramework\Middleware;
use OCP\AppFramework\OCS\OCSException;
use OCP\AppFramework\OCSController;
use OCP\IRequest;
+use OCP\Security\Bruteforce\IThrottler;
use OCP\Security\Bruteforce\MaxDelayReached;
use Psr\Log\LoggerInterface;
use ReflectionMethod;
@@ -55,7 +55,7 @@ class BruteForceMiddleware extends Middleware {
public function __construct(
protected ControllerMethodReflector $reflector,
- protected Throttler $throttler,
+ protected IThrottler $throttler,
protected IRequest $request,
protected LoggerInterface $logger,
) {