diff options
author | MichaIng <micha@dietpi.com> | 2019-12-04 12:42:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-04 12:42:55 +0100 |
commit | 4384806f616cf7b9f6a4492ba2fd094afd064f86 (patch) | |
tree | c653df3fcea2c8fce6101d066e0bf42db8026d6e /lib/private/Server.php | |
parent | 5afd7abf4481f019ad0044393b4734645e40f5af (diff) | |
parent | 76b78edd40fcb5dbe7f0434cbc41d2e291acfec1 (diff) | |
download | nextcloud-server-4384806f616cf7b9f6a4492ba2fd094afd064f86.tar.gz nextcloud-server-4384806f616cf7b9f6a4492ba2fd094afd064f86.zip |
Merge branch 'master' into patch-1
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index f919e0b4efb..fa2a521b6b1 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -199,6 +199,8 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias(\OCP\Contacts\IManager::class, \OC\ContactsManager::class); $this->registerAlias('ContactsManager', \OCP\Contacts\IManager::class); + $this->registerAlias(\OCP\DirectEditing\IManager::class, \OC\DirectEditing\Manager::class); + $this->registerAlias(IActionFactory::class, ActionFactory::class); @@ -298,7 +300,7 @@ class Server extends ServerContainer implements IServerContainer { $this->getLogger(), $this->getUserManager() ); - $connector = new HookConnector($root, $view); + $connector = new HookConnector($root, $view, $c->getEventDispatcher()); $connector->viewToNode(); $previewConnector = new \OC\Preview\WatcherConnector($root, $c->getSystemConfig()); @@ -315,9 +317,6 @@ class Server extends ServerContainer implements IServerContainer { }); $this->registerAlias('LazyRootFolder', \OCP\Files\IRootFolder::class); - $this->registerService(\OC\User\Manager::class, function (Server $c) { - return new \OC\User\Manager($c->getConfig(), $c->getEventDispatcher()); - }); $this->registerAlias('UserManager', \OC\User\Manager::class); $this->registerAlias(\OCP\IUserManager::class, \OC\User\Manager::class); @@ -597,14 +596,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(), @@ -1194,14 +1185,6 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias(IDashboardManager::class, DashboardManager::class); $this->registerAlias(IFullTextSearchManager::class, FullTextSearchManager::class); - $this->registerService(\OC\Security\IdentityProof\Manager::class, function (Server $c) { - return new \OC\Security\IdentityProof\Manager( - $c->query(\OC\Files\AppData\Factory::class), - $c->getCrypto(), - $c->getConfig() - ); - }); - $this->registerAlias(ISubAdmin::class, SubAdmin::class); $this->registerAlias(IInitialStateService::class, InitialStateService::class); |