[FEATURE] Introduce ModifyFileDumpEvent
A new PSR-14 based event "ModifyFileDumpEvent" is introduced in favor of the existing $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['FileDumpEID.php']['checkFileAccess'] hook, which is now marked as deprecated, along with its interface "FileDumpEIDHookInterface". In contrast to the hook, the new event also contains the PSR-7 Request and additionally allows to replace the file, being dumped. Resolves: #95080 Releases: master Change-Id: Idbb0f2f38678c12e752e2255aa71853362f8cc46 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70865 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Wouter Wolters <typo3@wouterwolters.nl> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Controller/FileDumpController.php 32 additions, 9 deletionstypo3/sysext/core/Classes/Controller/FileDumpController.php
- typo3/sysext/core/Classes/Resource/Event/ModifyFileDumpEvent.php 75 additions, 0 deletions...ysext/core/Classes/Resource/Event/ModifyFileDumpEvent.php
- typo3/sysext/core/Classes/Resource/Hook/FileDumpEIDHookInterface.php 1 addition, 0 deletions...t/core/Classes/Resource/Hook/FileDumpEIDHookInterface.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-95080-FileDumpCheckFileAccessHook.rst 39 additions, 0 deletions.../master/Deprecation-95080-FileDumpCheckFileAccessHook.rst
- typo3/sysext/core/Documentation/Changelog/master/Feature-95080-NewPSR-14ModifyFileDumpEvent.rst 54 additions, 0 deletions...log/master/Feature-95080-NewPSR-14ModifyFileDumpEvent.rst
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php 5 additions, 0 deletions...figuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php 5 additions, 0 deletions...l/Configuration/ExtensionScanner/Php/ClassNameMatcher.php
Please register or sign in to comment