mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
Settings: remove all legacy getSettings calls
This commit is contained in:
parent
336257680c
commit
a64e36b111
@ -79,6 +79,6 @@ class JobsCommand extends Command
|
|||||||
|
|
||||||
protected function hasBeenDisabled()
|
protected function hasBeenDisabled()
|
||||||
{
|
{
|
||||||
return $this->db()->getSetting('disable_all_jobs') === 'y';
|
return $this->db()->settings()->disable_all_jobs === 'y';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ class IcingaConfig
|
|||||||
|
|
||||||
$this->connection = $connection;
|
$this->connection = $connection;
|
||||||
$this->db = $connection->getDbAdapter();
|
$this->db = $connection->getDbAdapter();
|
||||||
$this->configFormat = $this->connection->getSetting('config_format', 'v2');
|
$this->configFormat = $this->connection->settings()->config_format;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSize()
|
public function getSize()
|
||||||
@ -497,10 +497,7 @@ apply Service for (title => params in host.vars["%s"]) {
|
|||||||
|
|
||||||
protected function getMagicApplyVarName()
|
protected function getMagicApplyVarName()
|
||||||
{
|
{
|
||||||
return $this->connection->getSetting(
|
return $this->connection->settings()->magic_apply_for;
|
||||||
'magic_apply_for',
|
|
||||||
'_director_apply_for'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function usesMagicApplyFor()
|
protected function usesMagicApplyFor()
|
||||||
|
@ -16,6 +16,7 @@ class Settings
|
|||||||
'config_format' => 'v2',
|
'config_format' => 'v2',
|
||||||
'override_services_varname' => '_override_servicevars',
|
'override_services_varname' => '_override_servicevars',
|
||||||
'override_services_templatename' => 'host var overrides (Director)',
|
'override_services_templatename' => 'host var overrides (Director)',
|
||||||
|
// 'disable_all_jobs' => null, // 'y'
|
||||||
// 'experimental_features' => null, // 'allow'
|
// 'experimental_features' => null, // 'allow'
|
||||||
// 'master_zone' => null,
|
// 'master_zone' => null,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user