46 trigger_error(
'EidUtility::initFeUser() will be removed in TYPO3 v10.0. Use a PSR-15 middleware instead.', E_USER_DEPRECATED);
49 $tsfe->fe_user = GeneralUtility::makeInstance(FrontendUserAuthentication::class);
51 $pid = GeneralUtility::_GP(
'pid');
52 $tsfe->fe_user->checkPid_value = $pid ? implode(
',', GeneralUtility::intExplode(
',', $pid)) : 0;
54 if (GeneralUtility::_GP(
'FE_SESSION_KEY')) {
55 $fe_sParts = explode(
'-', GeneralUtility::_GP(
'FE_SESSION_KEY'));
57 if (md5($fe_sParts[0] .
'/' .
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'encryptionKey']) === (
string)$fe_sParts[1]) {
59 $_COOKIE[$cookieName] = $fe_sParts[0];
60 if (isset($_SERVER[
'HTTP_COOKIE'])) {
62 $_SERVER[
'HTTP_COOKIE'] .=
';' . $cookieName .
'=' . $fe_sParts[0];
64 $tsfe->fe_user->forceSetCookie =
true;
65 $tsfe->fe_user->dontSetCookie =
false;
69 $tsfe->fe_user->start();
70 $tsfe->fe_user->unpack_uc();
73 $_params = [
'pObj' => &$tsfe];
74 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/class.tslib_fe.php'][
'initFEuser'] ?? [] as $_funcRef) {
75 GeneralUtility::callUserFunction($_funcRef, $_params, $tsfe);
78 return $tsfe->fe_user;
89 trigger_error(
'EidUtility::initLanguage() will be removed in TYPO3 v10.0. Ensure to intantiate the LanguageService by yourself.', E_USER_DEPRECATED);
91 $GLOBALS[
'LANG'] = GeneralUtility::makeInstance(LanguageService::class);
102 trigger_error(
'EidUtility::initTCA() will be removed in TYPO3 v10.0. Is not needed anymore within eID scripts as TCA is now available at any time.', E_USER_DEPRECATED);
121 trigger_error(
'EidUtility::initExtensionTCA() will be removed in TYPO3 v10.0 as it is discouraged to only load ext_tables.php of one extension. Use ExtensionManagementUtility instead.', E_USER_DEPRECATED);
123 if (file_exists($extTablesPath)) {
125 require_once $extTablesPath;
140 $runtimeCache = GeneralUtility::makeInstance(CacheManager::class)->getCache(
'cache_runtime');
141 $tsfe = $runtimeCache->get(
'eidUtilityTsfe') ?:
null;
142 if ($tsfe ===
null) {
143 $tsfe = GeneralUtility::makeInstance(TypoScriptFrontendController::class,
null, 0, 0);
144 $runtimeCache->set(
'eidUtilityTsfe', $tsfe);