icingaweb2-module-director/application/controllers/CommandtemplateController.php
2017-08-25 16:28:22 +02:00

17 lines
401 B
PHP

<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Objects\IcingaCommand;
use Icinga\Module\Director\Web\Controller\TemplateController;
class CommandtemplateController extends TemplateController
{
protected function requireTemplate()
{
return IcingaCommand::load([
'object_name' => $this->params->get('name')
], $this->db());
}
}