From 6fcb16ced84a7003d6a1f5232b209cc71f374ac9 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Wed, 17 Jun 2015 11:29:55 +0200 Subject: [PATCH] IcingaConfig: Rename fromDb() to generate() --- application/controllers/ShowController.php | 2 +- library/Director/IcingaConfig/IcingaConfig.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php index 376bfb99..e7699bac 100644 --- a/application/controllers/ShowController.php +++ b/application/controllers/ShowController.php @@ -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) { diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index e8a4d4bb..28db654b 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -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);