private function initializeFramework()
{
// Set the error_reporting level
error_reporting($this->errorLevel);
$this->includeHelpers();
$this->includeBasicClasses();
// Set the container
System::setContainer($this->container);
/** @var Config $config */
$config = $this->getAdapter(Config::class);
// Preload the configuration (see #5872)
$config->preload();
// Register the class loader
ClassLoader::scanAndRegister();
$this->initializeLegacySessionAccess();
$this->setDefaultLanguage();
// Fully load the configuration
$config->getInstance();
$this->validateInstallation();
Input::initialize();
TemplateLoader::initialize();
$this->setTimezone();
$this->triggerInitializeSystemHook();
$this->handleRequestToken();
}