Deprecate \OC_App::getAppWebPath() and \OC_App::getAppPath()
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* @return string
* @throws AppPathNotFoundException if app path can't be found
*/
- public function getAppWebPath($appId) {
+ public function getAppWebPath(string $appId): string {
$appWebPath = \OC_App::getAppWebPath($appId);
if($appWebPath === false) {
throw new AppPathNotFoundException('Could not find web path for ' . $appId);
*
* @param string $appId
* @return string|false
+ * @deprecated 11.0.0 use \OC::$server->getAppManager()->getAppPath()
*/
public static function getAppPath(string $appId) {
if ($appId === null || trim($appId) === '') {
*
* @param string $appId
* @return string|false
+ * @deprecated 18.0.0 use \OC::$server->getAppManager()->getAppWebPath()
*/
public static function getAppWebPath(string $appId) {
if (($dir = self::findAppInDirectories($appId)) != false) {
*
* @param string $appId
* @return string
- * @since 17.0.0
+ * @since 18.0.0
* @throws AppPathNotFoundException
*/
- public function getAppWebPath($appId);
+ public function getAppWebPath(string $appId): string;
/**
* List all apps enabled for a user