Project

General

Profile

Actions

Task #90255

closed

Break down func_delete in ExtendedFileUtility into smaller methods for better overriding

Added by Leo Viezens almost 5 years ago. Updated over 4 years ago.

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

0%

Estimated time:
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.

Actions

Also available in: Atom PDF