Task #94253

Switch global lang references to use constructor injection.

Added by Larry Garfield 5 months ago. Updated 5 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-06-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

The language service is available through DI for constructor injection. That means the "getLangaugeService() { return $GLOBALS['LANG']; } pattern is no longer necessary, as the service can imply be injected like everything else.

This is an easy conversion, just tedious.

#1

Updated by Gerrit Code Review 5 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69363

Also available in: Atom PDF