mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-11 08:10:13 +00:00
Method to set dynamic config variables for DockerActionManager->CreateContainer()
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
fa50f5c141
commit
71b898ef14
2 changed files with 12 additions and 4 deletions
|
|
@ -25,6 +25,16 @@ class ConfigurationManager
|
|||
return $this->config;
|
||||
}
|
||||
|
||||
/**
|
||||
* A helper for setter methods, and to allow DockerActionManager->CreateContainer() to set dynamic
|
||||
* variables.
|
||||
* This method must be public for the latter purpose.
|
||||
*/
|
||||
public function set(string $key, mixed $value) : void {
|
||||
$this->GetConfig();
|
||||
$this->config[$key] = $value;
|
||||
}
|
||||
|
||||
public function GetPassword() : string {
|
||||
return $this->GetConfig()['password'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue