Project

General

Profile

Actions

Task #44818

closed

Restructure ConfigurationUtility and ConfigurationItemRepository

Added by Christian Kuhn almost 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2013-01-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Restructure ConfigurationUtility and ConfigurationItemRepository:

These classes have no good separation and have no good scope separation. This leads to code smell and hard understanding of what is going on. For example, ConfigurationUtility calls createArrayFromConstants() of ConfigurationItemRepository, and violates a clean access separation (the utility should not call some repository method). All in all, the code is wired and hard to understand.

Separation idea:
  • Utility should take care of getting current configuration of some extension and merging with default values
  • Repository should create the object hierachy from given merged configuration

Maybe it is even more wise to merge both classes into one (only to the repo), but that would work only, if the configuration is only needed for those repository method, and not otherwise.

All in all, this code already lead to several issues and should be done in a more clean and understandable way.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #42775: Saving one tab, deleted entries from other tabsClosedJan-Erik Revsbech2012-11-08

Actions
Related to TYPO3 Core - Bug #44701: EM ignores subcategories labelsClosedFrancois Suter2013-01-21

Actions
Actions

Also available in: Atom PDF