[!!!][TASK] Remove deprecated frontend-related hooks and include scripts
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Middleware / TypoScriptFrontendInitialization.php
index 11b1f7a..b83d686 100644 (file)
@@ -79,15 +79,6 @@ class TypoScriptFrontendInitialization implements MiddlewareInterface, LoggerAwa
                 throw new ServiceUnavailableException($message, 1526013723);
             }
         }
                 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);
     }
 }
         return $handler->handle($request);
     }
 }