mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-10-01 05:38:57 +02:00
16 lines
301 B
PHP
16 lines
301 B
PHP
<?php
|
|
|
|
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);
|
|
});
|
|
|