Deprecation: #95077 - FileDump CheckFileAccess hook¶
See forge#95077
Description¶
The TYPO3 hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['FileDumpEID.php']['checkFileAccess']
which is executed in the \TYPO3\CMS\Core\Controller\FileDumpController
class, enabling third-party
code to perform additional access / security checks before dumping the requested
file, has been marked as deprecated.
The accompanied PHP interface for the hook
TYPO3\CMS\Core\Resource\Hook\FileDumpEIDHookInterface
has been marked
as deprecated as well.
Impact¶
If a hook is registered in a TYPO3 installation, a PHP E_USER_DEPRECATED
error is triggered.
The extension scanner also detects any usage
of the deprecated interface as strong, and the definition of the
hook as weak match.
Affected Installations¶
TYPO3 installations with custom extensions using this hook.
Migration¶
Migrate to the newly introduced \TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent
PSR-14 event.