Add IAppManager::getAppWebPath()
Implements a public API for \OC_App::getAppWebPath() Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
This commit is contained in:
parent
a4e6073e47
commit
34919d3ebc
|
@ -13,6 +13,7 @@
|
||||||
* @author Robin Appelman <robin@icewind.nl>
|
* @author Robin Appelman <robin@icewind.nl>
|
||||||
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
||||||
* @author Vincent Petry <pvince81@owncloud.com>
|
* @author Vincent Petry <pvince81@owncloud.com>
|
||||||
|
* @author Daniel Rudolf <nextcloud.com@daniel-rudolf.de>
|
||||||
*
|
*
|
||||||
* @license AGPL-3.0
|
* @license AGPL-3.0
|
||||||
*
|
*
|
||||||
|
@ -403,6 +404,21 @@ class AppManager implements IAppManager {
|
||||||
return $appPath;
|
return $appPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the web path for the given app.
|
||||||
|
*
|
||||||
|
* @param string $appId
|
||||||
|
* @return string
|
||||||
|
* @throws AppPathNotFoundException if app path can't be found
|
||||||
|
*/
|
||||||
|
public function getAppWebPath($appId) {
|
||||||
|
$appWebPath = \OC_App::getAppWebPath($appId);
|
||||||
|
if($appWebPath === false) {
|
||||||
|
throw new AppPathNotFoundException('Could not find web path for ' . $appId);
|
||||||
|
}
|
||||||
|
return $appWebPath;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear the cached list of apps when enabling/disabling an app
|
* Clear the cached list of apps when enabling/disabling an app
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
* @author Morris Jobke <hey@morrisjobke.de>
|
* @author Morris Jobke <hey@morrisjobke.de>
|
||||||
* @author Robin Appelman <robin@icewind.nl>
|
* @author Robin Appelman <robin@icewind.nl>
|
||||||
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
||||||
|
* @author Daniel Rudolf <nextcloud.com@daniel-rudolf.de>
|
||||||
*
|
*
|
||||||
* @license AGPL-3.0
|
* @license AGPL-3.0
|
||||||
*
|
*
|
||||||
|
@ -125,6 +126,16 @@ interface IAppManager {
|
||||||
*/
|
*/
|
||||||
public function getAppPath($appId);
|
public function getAppPath($appId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the web path for the given app.
|
||||||
|
*
|
||||||
|
* @param string $appId
|
||||||
|
* @return string
|
||||||
|
* @since 17.0.0
|
||||||
|
* @throws AppPathNotFoundException
|
||||||
|
*/
|
||||||
|
public function getAppWebPath($appId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List all apps enabled for a user
|
* List all apps enabled for a user
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue