diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-31 21:34:29 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-31 21:34:29 +0200 |
commit | 206f83941b26b16f89e695ae84b998e9cf11132a (patch) | |
tree | e19b0f42c4edda179d1f684694653ddf973050af /lib/server.php | |
parent | 97bdf008b1cefaa092e23fc5a9bad787e755ed77 (diff) | |
download | nextcloud-server-206f83941b26b16f89e695ae84b998e9cf11132a.tar.gz nextcloud-server-206f83941b26b16f89e695ae84b998e9cf11132a.zip |
move new interfaces into lib/public and OCP
Diffstat (limited to 'lib/server.php')
-rw-r--r-- | lib/server.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/server.php b/lib/server.php index 72c82efe16b..ad955bf5c65 100644 --- a/lib/server.php +++ b/lib/server.php @@ -3,7 +3,7 @@ namespace OC; use OC\AppFramework\Utility\SimpleContainer; -use OCP\Core\IServerContainer; +use OCP\IServerContainer; /** * Class Server @@ -20,9 +20,21 @@ class Server extends SimpleContainer implements IServerContainer { } /** - * @return \OCP\Core\Contacts\IManager + * @return \OCP\Contacts\IManager */ function getContactsManager() { return $this->query('ContactsManager'); } + + /** + * The current request object holding all information about the request currently being processed + * is returned from this method. + * In case the current execution was not initiated by a web request null is returned + * + * @return \OCP\IRequest|null + */ + function getRequest() + { + return $this->query('Request'); + } } |