mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-31 11:24:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			363 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			363 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
 | |
| 
 | |
| namespace Icinga\Web\View;
 | |
| 
 | |
| use Icinga\Authentication\Auth;
 | |
| use Icinga\Web\Widget;
 | |
| 
 | |
| $this->addHelperFunction('auth', function () {
 | |
|     return Auth::getInstance();
 | |
| });
 | |
| 
 | |
| $this->addHelperFunction('widget', function ($name, $options = null) {
 | |
|     return Widget::create($name, $options);
 | |
| });
 | |
| 
 |