Conf: renamed controller to Config

This commit is contained in:
Alexander Fuhr 2015-06-17 18:57:51 +02:00
parent a287ef799d
commit bc00eefb07
2 changed files with 10 additions and 1 deletions

View File

@ -4,10 +4,11 @@ use Icinga\Module\Director\ActionController;
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
class Director_ConfController extends ActionController
class Director_ConfigController extends ActionController
{
public function showAction()
{
/** @var IcingaConfig $config */
$config = IcingaConfig::generate($this->db());
$this->view->files = array();
@ -15,4 +16,12 @@ class Director_ConfController extends ActionController
$this->view->files[$filename] = $config->getContent();
}
}
public function storeAction()
{
/** @var IcingaConfig $config */
$config = IcingaConfig::generate($this->db());
$config->store();
}
}