diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-19 19:35:47 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-19 19:38:43 +0200 |
commit | 7927aebdeb3a1cf0f7e953ed3adfd1f34898d98c (patch) | |
tree | 9c34d43901b390923ee97943306f2771dde9590f /lib/private/Server.php | |
parent | 1521da14ff292cb257f442a5f16c41b29faec337 (diff) | |
download | nextcloud-server-7927aebdeb3a1cf0f7e953ed3adfd1f34898d98c.tar.gz nextcloud-server-7927aebdeb3a1cf0f7e953ed3adfd1f34898d98c.zip |
Fix report of phpstan in Limiter
* unneeded arguments to constructor
* added return types
* let automatic DI do its work
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index f919e0b4efb..bce4f0feaef 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -597,14 +597,6 @@ class Server extends ServerContainer implements IServerContainer { }); $this->registerAlias('Search', \OCP\ISearch::class); - $this->registerService(\OC\Security\RateLimiting\Limiter::class, function (Server $c) { - return new \OC\Security\RateLimiting\Limiter( - $this->getUserSession(), - $this->getRequest(), - new \OC\AppFramework\Utility\TimeFactory(), - $c->query(\OC\Security\RateLimiting\Backend\IBackend::class) - ); - }); $this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) { return new \OC\Security\RateLimiting\Backend\MemoryCache( $this->getMemCacheFactory(), |