aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 8c5169f229e..cfdbd800a77 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -391,6 +391,13 @@ class Server extends SimpleContainer implements IServerContainer {
new \OC_Defaults()
);
});
+ $this->registerService('OcsClient', function(Server $c) {
+ return new OCSClient(
+ $this->getHTTPClientService(),
+ $this->getConfig(),
+ $this->getLogger()
+ );
+ });
}
/**
@@ -837,6 +844,13 @@ class Server extends SimpleContainer implements IServerContainer {
}
/**
+ * @return \OC\OCSClient
+ */
+ public function getOcsClient() {
+ return $this->query('OcsClient');
+ }
+
+ /**
* @return \OCP\IDateTimeZone
*/
public function getDateTimeZone() {