IcingaConfig: Rename fromDb() to generate()

This commit is contained in:
Alexander Fuhr 2015-06-17 11:29:55 +02:00
parent bcbee81fa0
commit 6fcb16ced8
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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);