Task #90255

Break down func_delete in ExtendedFileUtility into smaller methods for better overriding

Added by Leo Viezens 26 days ago. Updated 26 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2020-01-30
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The public method 'func_delete' in TYPO3\CMS\Core\Utility\File\ExtendedFileUtility is currently ~150 lines long. I'd like to break this down into smaller (protected) sub methods.

Advantages:
You can use the XClass mechanism more effectively, as it would be possible to override only one sub method instead of having to override the whole 'func_delete' method.

Background:
I'm currently using a composer patch to hook into the 'func_delete' method. This has to get maintained, as the 'ExtendedFileUtility' changes from time to time and the composer patch has to get adjusted.

History

#1 Updated by Leo Viezens 26 days ago

  • Subject changed from Break down func_delete in ExtendedFileUtility for better overriding to Break down func_delete in ExtendedFileUtility into smaller methods for better overriding

Also available in: Atom PDF