Merge pull request #931 from nextcloud/replace-hardcoded-classname
let the containers resolving capabilities find and instantiate the ri…
This commit is contained in:
commit
53d3c8b635
1 changed files with 4 additions and 4 deletions
|
@ -1397,7 +1397,7 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
* @return \OCA\Files_External\Service\BackendService
|
||||
*/
|
||||
public function getStoragesBackendService() {
|
||||
return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\BackendService');
|
||||
return $this->query('OCA\\Files_External\\Service\\BackendService');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1406,7 +1406,7 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
* @return \OCA\Files_External\Service\GlobalStoragesService
|
||||
*/
|
||||
public function getGlobalStoragesService() {
|
||||
return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\GlobalStoragesService');
|
||||
return $this->query('OCA\\Files_External\\Service\\GlobalStoragesService');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1415,7 +1415,7 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
* @return \OCA\Files_External\Service\UserGlobalStoragesService
|
||||
*/
|
||||
public function getUserGlobalStoragesService() {
|
||||
return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\UserGlobalStoragesService');
|
||||
return $this->query('OCA\\Files_External\\Service\\UserGlobalStoragesService');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1424,7 +1424,7 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
* @return \OCA\Files_External\Service\UserStoragesService
|
||||
*/
|
||||
public function getUserStoragesService() {
|
||||
return \OC_Mount_Config::$app->getContainer()->query('OCA\\Files_External\\Service\\UserStoragesService');
|
||||
return $this->query('OCA\\Files_External\\Service\\UserStoragesService');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue