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

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