mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-17 11:30:27 +01: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);
|
|
});
|
|
|