Project

General

Profile

Actions

Task #94253

closed

Switch global lang references to use constructor injection.

Added by Larry Garfield over 3 years ago. Updated 5 months ago.

Status:
Closed
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 over 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 #2

Updated by Georg Ringer 5 months ago

  • Status changed from Under Review to Closed

from gerrit: Abandoned

The language object needs to split data from service first.

therefore closing it for now

Actions

Also available in: Atom PDF