Issue Task Closed

#103028Refactoring DefaultTcaSchema to reduce redundant code

Cyrill Gsell 02/03/24, 13:02 updated 07/11/24, 13:05

Description

I would like to simplify the TYPO3\CMS\Core\Database\Schema\DefaultTcaSchema class by replacing all the “foreach ($tableDefinition[‘columns’] as $fieldName => $fieldConfig)” calls with one foreach. I would suggest a mapping class which returns the column type and its options depending on the given tca configuration.

Optional:
  • If wanted I could add an PSR-14 event allowing to override the column type and options with an event listener.

I already have a running prototype, if you think this would be useful I would finish it and update the tests if needed before I push it for a review.

P.S. I created this task to get startet in the TYPO3 contribution by getting to know the whole process.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.