aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-02-08 14:34:01 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-02-08 14:34:01 +0100
commitcf6a0e083302bec3a387b9c27be42f64a8bf6b10 (patch)
treee2ac60dde1359ff26ab32960cd3e5460447ba680
parentecfa7c3ca359e732b8bef395edd6be9bd9107b2e (diff)
downloadnextcloud-server-cf6a0e083302bec3a387b9c27be42f64a8bf6b10.tar.gz
nextcloud-server-cf6a0e083302bec3a387b9c27be42f64a8bf6b10.zip
chore: Deprecate OC_App::loadApps and add missing return type in Server
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/private/Server.php1
-rw-r--r--lib/private/legacy/OC_App.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index b31fb9cd55c..0ff8e6fb717 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1661,6 +1661,7 @@ class Server extends ServerContainer implements IServerContainer {
/**
* @param \OCP\ISession $session
+ * @return void
*/
public function setSession(\OCP\ISession $session) {
$this->get(SessionStorage::class)->setSession($session);
diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php
index 841ad541674..c652fcfb9ba 100644
--- a/lib/private/legacy/OC_App.php
+++ b/lib/private/legacy/OC_App.php
@@ -117,6 +117,8 @@ class OC_App {
* exists.
*
* if $types is set to non-empty array, only apps of those types will be loaded
+ *
+ * @deprecated 29.0.0 use IAppManager::loadApps instead
*/
public static function loadApps(array $types = []): bool {
if (!\OC::$server->getSystemConfig()->getValue('installed', false)) {