icingaweb2-module-director/application/controllers/NotificationtemplateController.php
Thomas Gelf a0a12ce3d1 TemplateControllers: throw away custom code...
...and bring all logic to the base class, fix all links

fixes #1044
2017-07-28 22:56:03 +02:00

17 lines
416 B
PHP

<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Objects\IcingaNotification;
use Icinga\Module\Director\Web\Controller\TemplateController;
class NotificationtemplateController extends TemplateController
{
protected function requireTemplate()
{
return IcingaNotification::load([
'object_name' => $this->params->get('name')
], $this->db());
}
}