Project

General

Profile

Actions

Task #91991

closed

use Dependency Injection in Commands where appropriate

Added by Anja Leichsenring over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2020-08-12
Due date:
% Done:

100%

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

Description

Implementation can following rules of thumb:

- if dependency is a Singleton, inject it
- if dependency is a model class and no xclass is desired, create it with new
- if dependency is a model class and xclass behavior can not be ruled out, use GU::makeInstance


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #91799: Remove ObjectManager from ExtensionmanagerClosedBenni Mack2020-07-13

Actions
Actions

Also available in: Atom PDF