Project

General

Profile

Actions

Task #94253

open

Switch global lang references to use constructor injection.

Added by Larry Garfield almost 3 years ago. Updated almost 3 years 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.

Actions #1

Updated by Gerrit Code Review almost 3 years 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

Actions

Also available in: Atom PDF