/**
  * Initialize frontend environment
  *
  * @return void
  */
 public function __construct()
 {
     $this->bootstrap = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Core\\Bootstrap');
     $feUserObj = EidUtility::initFeUser();
     $pageId = GeneralUtility::_GET('id') ?: 1;
     $pageType = GeneralUtility::_GET('type') ?: 0;
     /** @var TypoScriptFrontendController $typoScriptFrontendController */
     $this->typoScriptFrontendController = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', $GLOBALS['TYPO3_CONF_VARS'], $pageId, $pageType, true);
     $GLOBALS['TSFE'] = $this->typoScriptFrontendController;
     $this->typoScriptFrontendController->connectToDB();
     $this->typoScriptFrontendController->fe_user = $feUserObj;
     $this->typoScriptFrontendController->id = $pageId;
     $this->typoScriptFrontendController->determineId();
     $this->typoScriptFrontendController->checkAlternativeIdMethods();
     $this->typoScriptFrontendController->getCompressedTCarray();
     $this->typoScriptFrontendController->initTemplate();
     $this->typoScriptFrontendController->getConfigArray();
     $this->typoScriptFrontendController->includeTCA();
     $this->typoScriptFrontendController->settingLanguage();
     $this->typoScriptFrontendController->settingLocale();
 }