Expose files_external services from Server
Not exposed to OCP yet
This commit is contained in:
parent
82d9829c97
commit
3142a20f25
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue