aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-12-04 16:00:20 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-13 10:19:19 +0100
commitfb917c495b00348de6d57ab7ddf612de70ad9427 (patch)
tree6ab25b788a5b0ab80f1c4eaa1bd927f86ea200e6 /lib
parentd2864f7d84775b18774734d7d088657b33e05e55 (diff)
downloadnextcloud-server-fb917c495b00348de6d57ab7ddf612de70ad9427.tar.gz
nextcloud-server-fb917c495b00348de6d57ab7ddf612de70ad9427.zip
fix(ocp): Deprecate getInstalledApps and replace with clearer method name
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppManager.php11
-rw-r--r--lib/public/App/IAppManager.php13
2 files changed, 21 insertions, 3 deletions
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php
index 2603b03ee84..d71fb5f74c2 100644
--- a/lib/private/App/AppManager.php
+++ b/lib/private/App/AppManager.php
@@ -149,11 +149,20 @@ class AppManager implements IAppManager {
}
/**
- * List all installed apps
+ * Deprecated alias
*
* @return string[]
*/
public function getInstalledApps() {
+ return $this->getEnabledApps();
+ }
+
+ /**
+ * List all enabled apps, either for everyone or for some groups
+ *
+ * @return list<string>
+ */
+ public function getEnabledApps(): array {
return array_keys($this->getInstalledAppsValues());
}
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index ee090bcff9d..961823dee6e 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -79,14 +79,14 @@ interface IAppManager {
* @param string $appId
* @return bool
* @since 8.0.0
- * @deprecated 31.0.0 Use either {@see self::isEnabledForUser} or {@see self::isEnabledForAnyone}
+ * @deprecated 32.0.0 Use either {@see self::isEnabledForUser} or {@see self::isEnabledForAnyone}
*/
public function isInstalled($appId);
/**
* Check if an app is enabled in the instance, either for everyone or for specific groups
*
- * @since 31.0.0
+ * @since 32.0.0
*/
public function isEnabledForAnyone(string $appId): bool;
@@ -186,10 +186,19 @@ interface IAppManager {
*
* @return string[]
* @since 8.1.0
+ * @deprecated 32.0.0 Use either {@see self::getEnabledApps} or {@see self::getEnabledAppsForUser}
*/
public function getInstalledApps();
/**
+ * List all apps enabled, either for everyone or for specific groups only
+ *
+ * @return list<string>
+ * @since 32.0.0
+ */
+ public function getEnabledApps(): array;
+
+ /**
* Clear the cached list of apps when enabling/disabling an app
* @since 8.1.0
*/