Deprecation: #86279 - Various Hooks and PSR-15 Middlewares

See Issue #86279

Description

The new PSR-15-based middleware concept allows for a more fine-grained “hooking” mechanism when enhancing the HTTP Request or Response object.

The following hooks have therefore been marked as deprecated:

  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-PostProc']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['connectToDB']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['initFEuser']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkDataSubmission']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preBeUser']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['postBeUser']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest']

On top, some middlewares have only been introduced in order to execute these hooks, or due to, and are marked for internal use:

  • typo3/cms-core/normalized-params-attribute
  • typo3/cms-backend/legacy-document-template
  • typo3/cms-backend/output-compression
  • typo3/cms-backend/response-headers
  • typo3/cms-frontend/timetracker
  • typo3/cms-frontend/preprocessing
  • typo3/cms-frontend/eid
  • typo3/cms-frontend/content-length-headers
  • typo3/cms-frontend/tsfe
  • typo3/cms-frontend/output-compression
  • typo3/cms-frontend/prepare-tsfe-rendering
  • typo3/cms-frontend/shortcut-and-mountpoint-redirect

As these middlewares are marked as internal, it is recommended not to reference them directly, as these might get removed in TYPO3 v10.

Impact

Making use of one of the hooks in an extension will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

TYPO3 instances with extensions using any of the hooks.

Migration

Use a custom PSR-15 middleware instead.