diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-09-21 18:49:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 18:49:44 +0200 |
commit | 3b6a9cd23628464cd24da3d426764a8232124f33 (patch) | |
tree | 4a4c814ef8b500d84748dba95e2d5b05ba2d26c6 /lib/private/Server.php | |
parent | b11ca34bbd0c2d5fdbb6b68b3e1bf93dad02f588 (diff) | |
parent | e477bb7eaf0d4bd220361ceb47ac4bcca9b438bf (diff) | |
download | nextcloud-server-3b6a9cd23628464cd24da3d426764a8232124f33.tar.gz nextcloud-server-3b6a9cd23628464cd24da3d426764a8232124f33.zip |
Merge pull request #40288 from nextcloud/feat/appframework/rate-limiter
feat(appframework): Expose programmatic rate limiter
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index c874591f576..7ab57478f44 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -143,6 +143,7 @@ use OC\Security\CSP\ContentSecurityPolicyNonceManager; use OC\Security\CSRF\CsrfTokenManager; use OC\Security\CSRF\TokenStorage\SessionStorage; use OC\Security\Hasher; +use OC\Security\RateLimiting\Limiter; use OC\Security\SecureRandom; use OC\Security\TrustedDomainHelper; use OC\Security\VerificationToken\VerificationToken; @@ -241,6 +242,7 @@ use OCP\Security\ICrypto; use OCP\Security\IHasher; use OCP\Security\ISecureRandom; use OCP\Security\ITrustedDomainHelper; +use OCP\Security\RateLimiting\ILimiter; use OCP\Security\VerificationToken\IVerificationToken; use OCP\Share\IShareHelper; use OCP\SpeechToText\ISpeechToTextManager; @@ -1419,6 +1421,8 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias(\OCP\TextProcessing\IManager::class, \OC\TextProcessing\Manager::class); + $this->registerAlias(ILimiter::class, Limiter::class); + $this->connectDispatcher(); } |