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