2014-03-17 17:14:16 +01:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-03-17 17:14:16 +01:00
|
|
|
|
|
|
|
namespace Icinga\Web\View;
|
|
|
|
|
2015-07-28 17:08:55 +02:00
|
|
|
use Icinga\Authentication\Auth;
|
2014-06-17 15:53:05 +02:00
|
|
|
use Icinga\Web\Widget;
|
2014-03-17 17:14:16 +01:00
|
|
|
|
|
|
|
$this->addHelperFunction('auth', function () {
|
2015-07-28 17:08:55 +02:00
|
|
|
return Auth::getInstance();
|
2014-03-17 17:14:16 +01:00
|
|
|
});
|
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
|