Commandtemplate: add missing controller

fixes #1060
This commit is contained in:
Thomas Gelf 2017-08-25 16:28:22 +02:00
parent a6222e2abb
commit 551039e42b
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?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());
}
}