blob: b4300ef10aad2a62fe87412973619fac3e8cda6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
// Icinga Web 2 X.509 Module | (c) 2018 Icinga GmbH | GPLv2
namespace Icinga\Module\X509\Controllers;
use Icinga\Application\Config;
use Icinga\Module\X509\Forms\Config\BackendConfigForm;
use Icinga\Web\Controller;
class ConfigController extends Controller
{
public function init()
{
$this->assertPermission('config/modules');
parent::init();
}
public function backendAction()
{
$form = (new BackendConfigForm())
->setIniConfig(Config::module('x509'));
$form->handleRequest();
$this->view->tabs = $this->Module()->getConfigTabs()->activate('backend');
$this->view->form = $form;
}
}
|