Commit e99988b9 authored by Robin McCorkell's avatar Robin McCorkell
Browse files

Merge pull request #18676 from owncloud/ext-eventdispatcher

files_external event dispatcher
parents ee1b57d1 3142a20f
......@@ -50,6 +50,11 @@ class Application extends App {
$this->loadBackends();
$this->loadAuthMechanisms();
// app developers: do NOT depend on this! it will disappear with oC 9.0!
\OC::$server->getEventDispatcher()->dispatch(
'OCA\\Files_External::loadAdditionalBackends'
);
}
/**
......
......@@ -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');
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment