diff options
author | Joas Schilling <coding@schilljs.com> | 2023-08-28 15:50:45 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-08-28 15:50:45 +0200 |
commit | 25309bcb45232bf30fe719bac1776f0136f7cd7a (patch) | |
tree | 7cfa6dacd42f22a854b895c2ae5853ff1725d96b /lib/private/AppFramework/DependencyInjection | |
parent | ac3d7e3a7e9848c5e134b79f481d73416cc810f4 (diff) | |
download | nextcloud-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/DependencyInjection')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 9a9740b7bcc..a012d1e8ea6 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -72,6 +72,7 @@ use OCP\IServerContainer; use OCP\ISession; use OCP\IURLGenerator; use OCP\IUserSession; +use OCP\Security\Bruteforce\IThrottler; use Psr\Container\ContainerInterface; use Psr\Log\LoggerInterface; @@ -233,7 +234,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { $c->get(IRequest::class), $c->get(IControllerMethodReflector::class), $c->get(IUserSession::class), - $c->get(OC\Security\Bruteforce\Throttler::class) + $c->get(IThrottler::class) ) ); $dispatcher->registerMiddleware( @@ -291,7 +292,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { $dispatcher->registerMiddleware( new OC\AppFramework\Middleware\Security\BruteForceMiddleware( $c->get(IControllerMethodReflector::class), - $c->get(OC\Security\Bruteforce\Throttler::class), + $c->get(IThrottler::class), $c->get(IRequest::class), $c->get(LoggerInterface::class) ) @@ -309,7 +310,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { $c->get(IRequest::class), $c->get(ISession::class), $c->get(\OCP\IConfig::class), - $c->get(OC\Security\Bruteforce\Throttler::class) + $c->get(IThrottler::class) ) ); $dispatcher->registerMiddleware( |