mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
e75de8cf60
commit
62c0f0be03
@ -13,8 +13,6 @@ use Icinga\Logger\Logger;
|
|||||||
use Icinga\Web\Request;
|
use Icinga\Web\Request;
|
||||||
use Icinga\Web\Response;
|
use Icinga\Web\Response;
|
||||||
use Icinga\Web\View;
|
use Icinga\Web\View;
|
||||||
use Icinga\Web\Session\Session as BaseSession;
|
|
||||||
use Icinga\Web\Session;
|
|
||||||
use Icinga\User;
|
use Icinga\User;
|
||||||
use Icinga\Util\Translator;
|
use Icinga\Util\Translator;
|
||||||
use Icinga\Util\DateTimeFactory;
|
use Icinga\Util\DateTimeFactory;
|
||||||
@ -59,13 +57,6 @@ class Web extends ApplicationBootstrap
|
|||||||
*/
|
*/
|
||||||
private $request;
|
private $request;
|
||||||
|
|
||||||
/**
|
|
||||||
* Session object
|
|
||||||
*
|
|
||||||
* @var BaseSession
|
|
||||||
*/
|
|
||||||
private $session;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User object
|
* User object
|
||||||
*
|
*
|
||||||
@ -92,7 +83,6 @@ class Web extends ApplicationBootstrap
|
|||||||
->setupErrorHandling()
|
->setupErrorHandling()
|
||||||
->loadConfig()
|
->loadConfig()
|
||||||
->setupResourceFactory()
|
->setupResourceFactory()
|
||||||
->setupSession()
|
|
||||||
->setupUser()
|
->setupUser()
|
||||||
->setupTimezone()
|
->setupTimezone()
|
||||||
->setupLogger()
|
->setupLogger()
|
||||||
@ -172,7 +162,6 @@ class Web extends ApplicationBootstrap
|
|||||||
|
|
||||||
$this->setupFrontController();
|
$this->setupFrontController();
|
||||||
$this->setupViewRenderer();
|
$this->setupViewRenderer();
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,17 +181,6 @@ class Web extends ApplicationBootstrap
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize a session provider
|
|
||||||
*
|
|
||||||
* @return self
|
|
||||||
*/
|
|
||||||
private function setupSession()
|
|
||||||
{
|
|
||||||
$this->session = Session::create();
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inject dependencies into request
|
* Inject dependencies into request
|
||||||
*
|
*
|
||||||
|
@ -47,7 +47,7 @@ class Session
|
|||||||
public static function getSession()
|
public static function getSession()
|
||||||
{
|
{
|
||||||
if (self::$session === null) {
|
if (self::$session === null) {
|
||||||
throw new ProgrammingError('No session created yet');
|
self::create();
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$session;
|
return self::$session;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user