Skip to content
Snippets Groups Projects
Commit 412df9f4 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[FEATURE] Introduce AfterFileCommandProcessedEvent

A new PSR-14 based event "AfterFileCommandProcessedEvent"
is introduced in favour of the existing
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_extfilefunc.php']['processData']
hook, which is now marked as deprecated, along with
its interface "ExtendedFileUtilityProcessDataHookInterface".

The new event features the same data, however
the way they can be accessed is improved.

The previous `$action` and `$cmdArr` arguments
are now available within the `getCommand()` method,
while the action is the array key and the command
data ($cmdArr) is the value. This is more in line
with the actual request.

The hooks `$result` argument always contained all
results of previous operations, making it unnecessary
complicated to find out the actual result for the
current operation. This is now resolved. The new
`getResult()` method only returns the result for
the currently executed operation.

Finally the "getConflictMode()" method just returns
the conflict mode, used for the current operation.

Resolves: #95089
Releases: master
Change-Id: I9991eb73aed873da5987f88d2d0255764274e143
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70874


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 847f2dd9
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment