diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-24 15:03:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 15:03:15 +0200 |
commit | e785b849c71ebc980c5dc17f9c4c470fe0a7404a (patch) | |
tree | c0287817f22e2f0dc10aa335af506584b8b59e24 /lib/private | |
parent | c775d5e49792759e8055348ab33f61e1ced26c9d (diff) | |
parent | 25c36be9010486b31315b9c4272e6d7385b07dc2 (diff) | |
download | nextcloud-server-e785b849c71ebc980c5dc17f9c4c470fe0a7404a.tar.gz nextcloud-server-e785b849c71ebc980c5dc17f9c4c470fe0a7404a.zip |
Merge pull request #5835 from nextcloud/cleanup_testing_app
Cleanup testing app
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index c89931a2d1c..5efbcfecf32 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -113,6 +113,7 @@ use OCP\IServerContainer; use OCP\ITempManager; use OCP\Contacts\ContactsMenu\IActionFactory; use OCP\IURLGenerator; +use OCP\Lock\ILockingProvider; use OCP\RichObjectStrings\IValidator; use OCP\Security\IContentSecurityPolicyManager; use OCP\Share\IShareHelper; @@ -785,7 +786,7 @@ class Server extends ServerContainer implements IServerContainer { $factory = new $factoryClass($this); return $factory->getLDAPProvider(); }); - $this->registerService('LockingProvider', function (Server $c) { + $this->registerService(ILockingProvider::class, function (Server $c) { $ini = $c->getIniWrapper(); $config = $c->getConfig(); $ttl = $config->getSystemValue('filelocking.ttl', max(3600, $ini->getNumeric('max_execution_time'))); @@ -800,6 +801,7 @@ class Server extends ServerContainer implements IServerContainer { } return new NoopLockingProvider(); }); + $this->registerAlias('LockingProvider', ILockingProvider::class); $this->registerService(\OCP\Files\Mount\IMountManager::class, function () { return new \OC\Files\Mount\Manager(); |