mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
1e8523aae6
commit
d40e48cd8f
@ -12,6 +12,7 @@ use Icinga\Exception\ConfigurationError;
|
|||||||
use Icinga\Exception\NotReadableError;
|
use Icinga\Exception\NotReadableError;
|
||||||
use Icinga\Application\Logger;
|
use Icinga\Application\Logger;
|
||||||
use Icinga\Util\TimezoneDetect;
|
use Icinga\Util\TimezoneDetect;
|
||||||
|
use Icinga\Web\Cookie;
|
||||||
use Icinga\Web\Request;
|
use Icinga\Web\Request;
|
||||||
use Icinga\Web\Response;
|
use Icinga\Web\Response;
|
||||||
use Icinga\Web\View;
|
use Icinga\Web\View;
|
||||||
@ -91,6 +92,7 @@ class Web extends ApplicationBootstrap
|
|||||||
{
|
{
|
||||||
return $this
|
return $this
|
||||||
->setupZendAutoloader()
|
->setupZendAutoloader()
|
||||||
|
->detectCookieSupport()
|
||||||
->setupLogging()
|
->setupLogging()
|
||||||
->setupErrorHandling()
|
->setupErrorHandling()
|
||||||
->loadConfig()
|
->loadConfig()
|
||||||
@ -337,5 +339,20 @@ class Web extends ApplicationBootstrap
|
|||||||
);
|
);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check cookie support
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
protected function detectCookieSupport()
|
||||||
|
{
|
||||||
|
if (! Cookie::isSupported()) {
|
||||||
|
echo 'Cookies must be enabled to run this application.';
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user