mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
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;
|
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
|
||||||
|
|
||||||
class Director_ConfController extends ActionController
|
class Director_ConfigController extends ActionController
|
||||||
{
|
{
|
||||||
public function showAction()
|
public function showAction()
|
||||||
{
|
{
|
||||||
|
/** @var IcingaConfig $config */
|
||||||
$config = IcingaConfig::generate($this->db());
|
$config = IcingaConfig::generate($this->db());
|
||||||
$this->view->files = array();
|
$this->view->files = array();
|
||||||
|
|
||||||
@ -15,4 +16,12 @@ class Director_ConfController extends ActionController
|
|||||||
$this->view->files[$filename] = $config->getContent();
|
$this->view->files[$filename] = $config->getContent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function storeAction()
|
||||||
|
{
|
||||||
|
/** @var IcingaConfig $config */
|
||||||
|
$config = IcingaConfig::generate($this->db());
|
||||||
|
|
||||||
|
$config->store();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user