Conf: renamed controller to Config
This commit is contained in:
parent
a287ef799d
commit
bc00eefb07
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue