diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-08 12:35:57 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-03-20 10:21:45 +0100 |
commit | 78c17168185c21b6b788e40602f95c690fe441f9 (patch) | |
tree | ef53bbc85e48499a0e3e949f581b0e6e0c5b9565 /lib/public/App | |
parent | 8dc5f8218979a8bf05ac5a8e84649f750dcab5ec (diff) | |
download | nextcloud-server-78c17168185c21b6b788e40602f95c690fe441f9.tar.gz nextcloud-server-78c17168185c21b6b788e40602f95c690fe441f9.zip |
Move loadApps to the AppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/App')
-rw-r--r-- | lib/public/App/IAppManager.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php index 8440b757d40..5387e104fd9 100644 --- a/lib/public/App/IAppManager.php +++ b/lib/public/App/IAppManager.php @@ -197,6 +197,20 @@ interface IAppManager { public function isShipped($appId); /** + * Loads all apps + * + * @param string[] $types + * @return bool + * + * This function walks through the Nextcloud directory and loads all apps + * it can find. A directory contains an app if the file /appinfo/info.xml + * exists. + * + * if $types is set to non-empty array, only apps of those types will be loaded + */ + public function loadApps(array $types = []): bool; + + /** * Check if an app is of a specific type * @since 26.0.0 */ |