Project

General

Profile

Actions

Task #44818

closed

Restructure ConfigurationUtility and ConfigurationItemRepository

Added by Christian Kuhn over 11 years ago. Updated over 5 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 #1

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17731

Actions #2

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17731

Actions #3

Updated by Gerrit Code Review over 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/17759

Actions #4

Updated by Christian Kuhn over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Patches merged in 6.1 and 6.0

Actions #5

Updated by Oliver Hader about 11 years ago

  • Target version set to 2222
Actions #6

Updated by Oliver Hader about 11 years ago

  • Project changed from 2269 to TYPO3 Core
Actions #7

Updated by Oliver Hader about 11 years ago

  • Category set to Extension Manager
Actions #8

Updated by Oliver Hader about 11 years ago

  • Target version deleted (2222)
Actions #9

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF