aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/SetupCheck
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-11-06 16:21:15 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-11-07 14:15:47 +0100
commit39d2970191f88b0e9575e170e904a5c2214cb709 (patch)
tree25bfe751733e3831f454e8a3f87b5ff45d7961b7 /lib/private/SetupCheck
parent00d3856b92aa533777907b990d76e98bb4d3c9dc (diff)
downloadnextcloud-server-39d2970191f88b0e9575e170e904a5c2214cb709.tar.gz
nextcloud-server-39d2970191f88b0e9575e170e904a5c2214cb709.zip
Add $name property in SetupResult and improve API
Keys for check results are not locale dependent anymore, the name of the setup check is instead stored in the setup result object. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/SetupCheck')
-rw-r--r--lib/private/SetupCheck/SetupCheckManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/SetupCheck/SetupCheckManager.php b/lib/private/SetupCheck/SetupCheckManager.php
index f9e67772019..b8b6cfa11e7 100644
--- a/lib/private/SetupCheck/SetupCheckManager.php
+++ b/lib/private/SetupCheck/SetupCheckManager.php
@@ -47,9 +47,10 @@ class SetupCheckManager implements ISetupCheckManager {
$setupCheckObject = Server::get($setupCheck->getService());
$this->logger->debug('Running check '.get_class($setupCheckObject));
$setupResult = $setupCheckObject->run();
+ $setupResult->setName($setupCheckObject->getName());
$category = $setupCheckObject->getCategory();
$results[$category] ??= [];
- $results[$category][$setupCheckObject->getName()] = $setupResult;
+ $results[$category][$setupCheckObject::class] = $setupResult;
}
return $results;
}