mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
07834361d0
commit
8154d433d4
@ -16,7 +16,9 @@ use Icinga\Security\SecurityException;
|
|||||||
use Icinga\Web\Controller;
|
use Icinga\Web\Controller;
|
||||||
use Icinga\Web\UrlParams;
|
use Icinga\Web\UrlParams;
|
||||||
use Icinga\Web\Widget;
|
use Icinga\Web\Widget;
|
||||||
|
use ipl\Compat\Translator;
|
||||||
use ipl\Html\Link;
|
use ipl\Html\Link;
|
||||||
|
use ipl\Translation\TranslationHelper;
|
||||||
use ipl\Web\Widget\ControlsAndContent;
|
use ipl\Web\Widget\ControlsAndContent;
|
||||||
use ipl\Web\Controller\Extension\ControlsAndContentHelper;
|
use ipl\Web\Controller\Extension\ControlsAndContentHelper;
|
||||||
use ipl\Zf1\SimpleViewRenderer;
|
use ipl\Zf1\SimpleViewRenderer;
|
||||||
@ -38,11 +40,17 @@ abstract class ActionController extends Controller implements ControlsAndContent
|
|||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
|
$this->initializeTranslator();
|
||||||
Benchmark::measure('Director base Controller init()');
|
Benchmark::measure('Director base Controller init()');
|
||||||
$this->checkForRestApiRequest();
|
$this->checkForRestApiRequest();
|
||||||
$this->checkDirectorPermissions();
|
$this->checkDirectorPermissions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function initializeTranslator()
|
||||||
|
{
|
||||||
|
TranslationHelper::setTranslator(new Translator('director'));
|
||||||
|
}
|
||||||
|
|
||||||
public function getAuth()
|
public function getAuth()
|
||||||
{
|
{
|
||||||
return $this->Auth();
|
return $this->Auth();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user