mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaConfig: Rename fromDb() to generate()
This commit is contained in:
parent
bcbee81fa0
commit
6fcb16ced8
@ -16,7 +16,7 @@ class Director_ShowController extends ActionController
|
||||
|
||||
public function configAction()
|
||||
{
|
||||
$config = IcingaConfig::fromDb($this->db());
|
||||
$config = IcingaConfig::generate($this->db());
|
||||
$this->view->files = array();
|
||||
|
||||
foreach ($config->getFiles() as $filename => $config) {
|
||||
|
@ -19,7 +19,7 @@ class IcingaConfig
|
||||
return $this->files;
|
||||
}
|
||||
|
||||
public static function fromDb(DbConnection $db)
|
||||
public static function generate(DbConnection $db)
|
||||
{
|
||||
$config = new static;
|
||||
return $config->loadFromDb($db);
|
||||
|
Loading…
x
Reference in New Issue
Block a user