summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Web/View/helpers/generic.php
blob: bfd3f862665742a2f46e97782f46d3bd3e1527e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */

namespace Icinga\Web\View;

use Icinga\Authentication\Auth;
use Icinga\Web\Widget;

$this->addHelperFunction('auth', function () {
    return Auth::getInstance();
});

$this->addHelperFunction('widget', function ($name, $options = null) {
    return Widget::create($name, $options);
});