diff options
Diffstat (limited to 'application/controllers/CommandtemplateController.php')
-rw-r--r-- | application/controllers/CommandtemplateController.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/application/controllers/CommandtemplateController.php b/application/controllers/CommandtemplateController.php new file mode 100644 index 0000000..ca5f827 --- /dev/null +++ b/application/controllers/CommandtemplateController.php @@ -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()); + } +} |