public function __construct()
{
global $CONFIG;
if (!isset($CONFIG)) {
$CONFIG = new stdClass();
}
global $_ELGG;
if (!isset($_ELGG)) {
$_ELGG = new stdClass();
}
$this->CONFIG = $CONFIG;
$this->isAction = isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST';
$this->bootstrapConfig();
$this->bootstrapEngine();
_elgg_services()->views->view_path = $this->view_path;
_elgg_services()->setValue('session', \ElggSession::getMock());
elgg_set_viewtype('installation');
set_error_handler('_elgg_php_error_handler');
set_exception_handler('_elgg_php_exception_handler');
_elgg_services()->config->set('simplecache_enabled', false);
_elgg_services()->translator->registerTranslations(\Elgg\Application::elggDir()->getPath("/install/languages/"), TRUE);
_elgg_services()->views->registerPluginViews(\Elgg\Application::elggDir()->getPath("/"));
}