Camelize property install_latest_major => installLatestMajor

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-23 17:19:10 +01:00
parent 1db9400a99
commit 915d2096f7
2 changed files with 5 additions and 5 deletions

View file

@ -178,13 +178,13 @@ readonly class DockerController {
}
if (isset($request->getParsedBody()['install_latest_major'])) {
$install_latest_major = '32';
$installLatestMajor = '32';
} else {
$install_latest_major = '';
$installLatestMajor = '';
}
$this->configurationManager->startTransaction();
$this->configurationManager->install_latest_major = $install_latest_major;
$this->configurationManager->installLatestMajor = $installLatestMajor;
// set AIO_URL
$this->configurationManager->aioUrl = $host . ':' . (string)$port . $path;
// set wasStartButtonClicked

View file

@ -68,7 +68,7 @@ class ConfigurationManager
set { $this->set('wasStartButtonClicked', $value); }
}
public string $install_latest_major {
public string $installLatestMajor {
// Type-cast because old configs could have integers for this key.
get => (string) $this->get('install_latest_major', '');
set { $this->set('install_latest_major', $value); }
@ -1078,7 +1078,7 @@ class ConfigurationManager
'NEXTCLOUD_STARTUP_APPS' => $this->GetNextcloudStartupApps(),
'NEXTCLOUD_ADDITIONAL_APKS' => $this->GetNextcloudAdditionalApks(),
'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS' => $this->GetNextcloudAdditionalPhpExtensions(),
'INSTALL_LATEST_MAJOR' => $this->install_latest_major,
'INSTALL_LATEST_MAJOR' => $this->installLatestMajor,
'REMOVE_DISABLED_APPS' => $this->shouldDisabledAppsGetRemoved() ? 'yes' : '',
// Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then)
'AIO_DATABASE_HOST' => gethostbyname('nextcloud-aio-database'),