X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/31e024cbc2e4804c04fb6ac22c50b52a39986dc2..4ea922d09a270cf0e0e17d66d5a3ebbab8f38c74:/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php diff --git a/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php b/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php index 11b1f7a61b2c..b83d686a5712 100644 --- a/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php +++ b/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php @@ -79,15 +79,6 @@ class TypoScriptFrontendInitialization implements MiddlewareInterface, LoggerAwa throw new ServiceUnavailableException($message, 1526013723); } } - // Call post processing function for DB connection: - if (!empty($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['connectToDB'])) { - trigger_error('The "connectToDB" hook will be removed in TYPO3 v10.0 in favor of PSR-15. Use a middleware instead.', E_USER_DEPRECATED); - $_params = ['pObj' => &$GLOBALS['TSFE']]; - foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['connectToDB'] as $_funcRef) { - GeneralUtility::callUserFunction($_funcRef, $_params, $GLOBALS['TSFE']); - } - } - return $handler->handle($request); } }