diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-09-26 18:41:19 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-10-04 18:11:02 +0200 |
commit | 61a9098b7d88656d0297a18c1b7685c04d1c64dc (patch) | |
tree | 085e22056dcf0bfdfd50468398bcdd367b8bd224 /lib/private/server.php | |
parent | ce9436c0518d8ce522646dde33dbac141cc35c46 (diff) | |
download | nextcloud-server-61a9098b7d88656d0297a18c1b7685c04d1c64dc.tar.gz nextcloud-server-61a9098b7d88656d0297a18c1b7685c04d1c64dc.zip |
Add Helper and URLGenerator interfaces to server container
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 20 |
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 |