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()
|
public function configAction()
|
||||||
{
|
{
|
||||||
$config = IcingaConfig::fromDb($this->db());
|
$config = IcingaConfig::generate($this->db());
|
||||||
$this->view->files = array();
|
$this->view->files = array();
|
||||||
|
|
||||||
foreach ($config->getFiles() as $filename => $config) {
|
foreach ($config->getFiles() as $filename => $config) {
|
||||||
|
|
|
@ -19,7 +19,7 @@ class IcingaConfig
|
||||||
return $this->files;
|
return $this->files;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function fromDb(DbConnection $db)
|
public static function generate(DbConnection $db)
|
||||||
{
|
{
|
||||||
$config = new static;
|
$config = new static;
|
||||||
return $config->loadFromDb($db);
|
return $config->loadFromDb($db);
|
||||||
|
|
Loading…
Reference in New Issue