summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-05-01 15:08:56 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-05-01 15:08:56 +0200
commit13883d2d5737df2d6e7dba56cd1ffd90edd66322 (patch)
tree59b25f9a72baf4bcf3b643cb6e87233645061abd /lib
parent4575e8acfcda994e545e3d3fc0a8dd2f1f936a38 (diff)
downloadnextcloud-server-13883d2d5737df2d6e7dba56cd1ffd90edd66322.tar.gz
nextcloud-server-13883d2d5737df2d6e7dba56cd1ffd90edd66322.zip
add IClientService to DI container
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 2951ee536d2..439b631b50f 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -148,6 +148,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getRootFolder();
});
+ $this->registerService('OCP\\Http\\Client\\IClientService', function($c) {
+ return $this->getServer()->getHTTPClientService();
+ });
+
$this->registerService('OCP\\IGroupManager', function($c) {
return $this->getServer()->getGroupManager();
});