Project

General

Profile

Actions

Task #65377

closed

Avoid duplicated code when using getters for $GLOBALS

Added by most wanted over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2015-02-27
Due date:
% Done:

0%

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

Description

It is good practice to use getters for to get $GLOBALS array entries. This (can) lead to quite some duplicated code both in the core of TYPO3 CMS and 3rd party extensions. To avoid the need of this duplicated code it may make sense to put those getters as static methods into a designated class.

Example: \TYPO3\CMS\Core\Utility\GlobalsUtility::getLanguageService()

Actions

Also available in: Atom PDF