icingaweb2/library/Icinga/Web/View/helpers/generic.php

18 lines
363 B
PHP

<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Web\View;
use Icinga\Authentication\Manager;
use Icinga\Web\Widget;
$this->addHelperFunction('auth', function () {
return Manager::getInstance();
});
$this->addHelperFunction('widget', function ($name, $options = null) {
return Widget::create($name, $options);
});