mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-12-08 05:30:01 +01:00
24 lines
578 B
PHP
24 lines
578 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
use Exception;
|
|
use Icinga\Module\Director\Forms\KickstartForm;
|
|
|
|
class KickstartController extends DashboardController
|
|
{
|
|
public function indexAction()
|
|
{
|
|
$this->singleTab($this->view->title = $this->translate('Kickstart'));
|
|
$form = KickstartForm::load();
|
|
try {
|
|
$form->setEndpoint($this->db()->getDeploymentEndpoint());
|
|
} catch (Exception $e) {
|
|
// Silently ignore DB errors
|
|
}
|
|
|
|
$form->handleRequest();
|
|
$this->content()->add($form);
|
|
}
|
|
}
|