diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-11 09:34:05 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-11 09:34:05 +0100 |
commit | e99988b9c76784b796eb9ec288017d0bd00775ed (patch) | |
tree | aaba799ec4de638d1ae40f5ffcb0ebbca6785168 /lib/private/server.php | |
parent | ee1b57d15d17b7306ffbe6fce75c429b644fac78 (diff) | |
parent | 3142a20f25343ad3956c204559ec71850242993d (diff) | |
download | nextcloud-server-e99988b9c76784b796eb9ec288017d0bd00775ed.tar.gz nextcloud-server-e99988b9c76784b796eb9ec288017d0bd00775ed.zip |
Merge pull request #18676 from owncloud/ext-eventdispatcher
files_external event dispatcher
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index bbf060a47b7..59d03c2df97 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -1061,4 +1061,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'); + } } |