icingaweb2-module-director/application/controllers/ServicetemplateController.php

17 lines
401 B
PHP
Raw Normal View History

2017-04-20 09:12:48 +02:00
<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Objects\IcingaService;
use Icinga\Module\Director\Web\Controller\TemplateController;
2017-04-20 09:12:48 +02:00
class ServicetemplateController extends TemplateController
2017-04-20 09:12:48 +02:00
{
protected function requireTemplate()
{
return IcingaService::load([
'object_name' => $this->params->get('name')
], $this->db());
}
2017-04-20 09:12:48 +02:00
}