X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/a4ae5ffebc8682ece295e309547331e6698fefc8..4ea922d09a270cf0e0e17d66d5a3ebbab8f38c74:/typo3/sysext/frontend/Classes/Middleware/PreprocessRequestHook.php diff --git a/typo3/sysext/frontend/Classes/Middleware/PreprocessRequestHook.php b/typo3/sysext/frontend/Classes/Middleware/PreprocessRequestHook.php index c2e49dbfa8b..9f224788b90 100644 --- a/typo3/sysext/frontend/Classes/Middleware/PreprocessRequestHook.php +++ b/typo3/sysext/frontend/Classes/Middleware/PreprocessRequestHook.php @@ -19,7 +19,6 @@ use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; -use TYPO3\CMS\Core\Utility\GeneralUtility; /** * Calls a hook before processing a request for the TYPO3 Frontend. @@ -46,14 +45,6 @@ class PreprocessRequestHook implements MiddlewareInterface if ($request->getMethod() === 'POST') { $request = $request->withAttribute('_originalPostParameters', $_POST); } - // Set original parameters - if (!empty($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'])) { - trigger_error('The "preprocessRequest" hook will be removed in TYPO3 v10.0 in favor of PSR-15. Use a middleware instead.', E_USER_DEPRECATED); - foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'] as $hookFunction) { - $hookParameters = []; - GeneralUtility::callUserFunction($hookFunction, $hookParameters, $hookParameters); - } - } return $handler->handle($request); } }