mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Privatize GetConfig() and WriteConfig()
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
8cec4ab2bf
commit
0939b94397
1 changed files with 2 additions and 5 deletions
|
|
@ -175,7 +175,7 @@ class ConfigurationManager
|
|||
set { $this->set('turn_domain', $value); }
|
||||
}
|
||||
|
||||
public function GetConfig() : array
|
||||
private function GetConfig() : array
|
||||
{
|
||||
if ($this->config === [] && file_exists(DataConst::GetConfigFile()))
|
||||
{
|
||||
|
|
@ -571,10 +571,7 @@ class ConfigurationManager
|
|||
/**
|
||||
* @throws InvalidSettingConfigurationException
|
||||
*/
|
||||
public function WriteConfig(?array $config) : void {
|
||||
if ($config) {
|
||||
$this->config = $config;
|
||||
}
|
||||
private function WriteConfig() : void {
|
||||
if(!is_dir(DataConst::GetDataDirectory())) {
|
||||
throw new InvalidSettingConfigurationException(DataConst::GetDataDirectory() . " does not exist! Something was set up falsely!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue