summaryrefslogtreecommitdiffstats
path: root/application/controllers/CommandtemplateController.php
blob: ca5f827d47a1a1303be95d37bfcf483ad9227852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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());
    }
}