Task #86268

Make dataMapper not a singleton

Added by Tymoteusz Motylewski almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2018-09-15
Due date:
% Done:

100%

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

Description

In order to make further refactoring for https://review.typo3.org/#/c/53974/ where we want to pass a query/query settings object to datamapper, first we need to make dataMapper not a singleton.

All dependencies injected in datamapper are singletons.
There is a property "dataMap" which serves as a runtime cache for datamap.
btw, Datamap is also cached additionaly in dataMapFactory.

so the datamap property can be either replaced by a runtime cache from core, or kept as is, or moved to DataMapFactory

Also available in: Atom PDF