summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index e4cc0c6da81..4000f546a3b 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -105,6 +105,12 @@ class Server extends SimpleContainer implements IServerContainer {
$this->registerService('L10NFactory', function($c) {
return new \OC\L10N\Factory();
});
+ $this->registerService('URLGenerator', function($c) {
+ return new \OC\URLGenerator();
+ });
+ $this->registerService('AppHelper', function($c) {
+ return new \OC\AppHelper();
+ });
$this->registerService('UserCache', function($c) {
return new UserCache();
});
@@ -230,6 +236,20 @@ class Server extends SimpleContainer implements IServerContainer {
}
/**
+ * @return \OC\URLGenerator
+ */
+ function getURLGenerator() {
+ return $this->query('URLGenerator');
+ }
+
+ /**
+ * @return \OC\Helper
+ */
+ function getHelper() {
+ return $this->query('AppHelper');
+ }
+
+ /**
* Returns an ICache instance
*
* @return \OCP\ICache