summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-05-17 09:33:54 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2016-05-17 09:33:54 +0200
commitca8d2e2f2e3c4818818a18aa8fad54085e09c1a2 (patch)
tree2fc85f5acf85a5c78003f44b51ebf3579fd2a429 /lib
parent5e03e9a843aeccfb66e9f4156afa4bae89065fa3 (diff)
parent13883d2d5737df2d6e7dba56cd1ffd90edd66322 (diff)
downloadnextcloud-server-ca8d2e2f2e3c4818818a18aa8fad54085e09c1a2.tar.gz
nextcloud-server-ca8d2e2f2e3c4818818a18aa8fad54085e09c1a2.zip
Merge pull request #24370 from owncloud/iclientservice-dicontainer
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();
});