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

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