summaryrefslogtreecommitdiffstats
path: root/application/controllers/HosttemplateController.php
blob: a5bfc2b28563e2696654bf714ca5d33e1f896bcf (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\IcingaHost;
use Icinga\Module\Director\Web\Controller\TemplateController;

class HosttemplateController extends TemplateController
{
    protected function requireTemplate()
    {
        return IcingaHost::load([
            'object_name' => $this->params->get('name')
        ], $this->db());
    }
}