summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/app.php
diff options
context:
space:
mode:
authorDaniel Rudolf <github.com@daniel-rudolf.de>2019-09-05 18:35:40 +0200
committerDaniel Rudolf <github.com@daniel-rudolf.de>2019-09-05 18:35:40 +0200
commit2d56664e3587214254c1fd35370b6854c0ad878b (patch)
treed7af765e4ad38b5e97712915ea3d1c6e4aa7966a /lib/private/legacy/app.php
parent34919d3ebc828314579d180a5ab261b67e6fc03c (diff)
downloadnextcloud-server-2d56664e3587214254c1fd35370b6854c0ad878b.tar.gz
nextcloud-server-2d56664e3587214254c1fd35370b6854c0ad878b.zip
Improve usage of IAppManager::getAppWebPath()
Deprecate \OC_App::getAppWebPath() and \OC_App::getAppPath() Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
Diffstat (limited to 'lib/private/legacy/app.php')
-rw-r--r--lib/private/legacy/app.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 58b617aae45..9e47f9064d9 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -485,6 +485,7 @@ class OC_App {
*
* @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) === '') {
@@ -503,6 +504,7 @@ class OC_App {
*
* @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) {