2014-03-17 17:14:16 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Web\View;
|
|
|
|
|
|
|
|
use Icinga\Authentication\Manager;
|
2014-06-17 15:53:05 +02:00
|
|
|
use Icinga\Web\Widget;
|
2014-03-17 17:14:16 +01:00
|
|
|
|
|
|
|
$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);
|
|
|
|
});
|
|
|
|
|