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

18 lines
363 B
PHP
Raw Normal View History

<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Web\View;
use Icinga\Authentication\Manager;
2014-06-17 15:53:05 +02:00
use Icinga\Web\Widget;
$this->addHelperFunction('auth', function () {
return Manager::getInstance();
});
2014-06-20 13:18:52 +02:00
$this->addHelperFunction('widget', function ($name, $options = null) {
2014-06-17 15:53:05 +02:00
return Widget::create($name, $options);
});