Camelize property borg_backup_host_location => borgBackupHostLocation

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-23 17:21:07 +01:00
parent 915d2096f7
commit fb0c568925
3 changed files with 7 additions and 7 deletions

View file

@ -93,7 +93,7 @@ $app->get('/containers', function (Request $request, Response $response, array $
return $view->render($response, 'containers.twig', [
'domain' => $configurationManager->domain,
'apache_port' => $configurationManager->apache_port,
'borg_backup_host_location' => $configurationManager->borg_backup_host_location,
'borg_backup_host_location' => $configurationManager->borgBackupHostLocation,
'borg_remote_repo' => $configurationManager->borg_remote_repo,
'borg_public_key' => $configurationManager->GetBorgPublicKey(),
'nextcloud_password' => $configurationManager->GetAndGenerateSecret('NEXTCLOUD_PASSWORD'),

View file

@ -113,7 +113,7 @@ readonly class ContainerDefinitionFetcher {
if (isset($entry['volumes'])) {
foreach ($entry['volumes'] as $value) {
if($value['source'] === '%BORGBACKUP_HOST_LOCATION%') {
$value['source'] = $this->configurationManager->borg_backup_host_location;
$value['source'] = $this->configurationManager->borgBackupHostLocation;
if($value['source'] === '') {
continue;
}

View file

@ -122,7 +122,7 @@ class ConfigurationManager
set { $this->SetDomain($value); }
}
public string $borg_backup_host_location {
public string $borgBackupHostLocation {
get => $this->get('borg_backup_host_location', '');
set { $this->set('borg_backup_host_location', $value); }
}
@ -458,7 +458,7 @@ class ConfigurationManager
public function SetBorgLocationVars(string $location, string $repo) : void {
$this->ValidateBorgLocationVars($location, $repo);
$this->startTransaction();
$this->borg_backup_host_location = $location;
$this->borgBackupHostLocation = $location;
$this->borg_remote_repo = $repo;
$this->commitTransaction();
}
@ -507,7 +507,7 @@ class ConfigurationManager
public function DeleteBorgBackupLocationItems() : void {
// Delete the variables
$this->startTransaction();
$this->borg_backup_host_location = '';
$this->borgBackupHostLocation = '';
$this->borg_remote_repo = '';
$this->commitTransaction();
@ -530,7 +530,7 @@ class ConfigurationManager
}
$this->startTransaction();
$this->borg_backup_host_location = $location;
$this->borgBackupHostLocation = $location;
$this->borg_remote_repo = $repo;
$this->borg_restore_password = $password;
$this->instanceRestoreAttempt = true;
@ -1072,7 +1072,7 @@ class ConfigurationManager
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->GetFulltextsearchJavaOptions(),
'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->GetTrustedCacertsDir(),
'ADDITIONAL_DIRECTORIES_BACKUP' => $this->GetAdditionalBackupDirectoriesString() !== '' ? 'yes' : '',
'BORGBACKUP_HOST_LOCATION' => $this->borg_backup_host_location,
'BORGBACKUP_HOST_LOCATION' => $this->borgBackupHostLocation,
'APACHE_MAX_SIZE' => (string)($this->GetApacheMaxSize()),
'COLLABORA_SECCOMP_POLICY' => $this->GetCollaboraSeccompPolicy(),
'NEXTCLOUD_STARTUP_APPS' => $this->GetNextcloudStartupApps(),