summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-31 15:18:26 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-31 15:18:26 +0100
commit3142a20f25343ad3956c204559ec71850242993d (patch)
tree98d622033dfa63ea1da36aed2da08b549c073c7f
parent82d9829c973ee78d0389c3372c93d418afd34c54 (diff)
downloadnextcloud-server-3142a20f25343ad3956c204559ec71850242993d.tar.gz
nextcloud-server-3142a20f25343ad3956c204559ec71850242993d.zip
Expose files_external services from Server
Not exposed to OCP yet
-rw-r--r--lib/private/server.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index a741f33eb3d..acafb7b2dff 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -1035,4 +1035,36 @@ class Server extends SimpleContainer implements IServerContainer {
public function getSessionCryptoWrapper() {
return $this->query('CryptoWrapper');
}
+
+ /**
+ * Not a public API as of 8.2, wait for 9.0
+ * @return \OCA\Files_External\Service\BackendService
+ */
+ public function getStoragesBackendService() {
+ return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\BackendService');
+ }
+
+ /**
+ * Not a public API as of 8.2, wait for 9.0
+ * @return \OCA\Files_External\Service\GlobalStoragesService
+ */
+ public function getGlobalStoragesService() {
+ return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\GlobalStoragesService');
+ }
+
+ /**
+ * Not a public API as of 8.2, wait for 9.0
+ * @return \OCA\Files_External\Service\UserGlobalStoragesService
+ */
+ public function getUserGlobalStoragesService() {
+ return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\UserGlobalStoragesService');
+ }
+
+ /**
+ * Not a public API as of 8.2, wait for 9.0
+ * @return \OCA\Files_External\Service\UserStoragesService
+ */
+ public function getUserStoragesService() {
+ return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\UserStoragesService');
+ }
}