[BUGFIX] Localization ignores extensionName argument for TypoScript labels

Localization utility should pass extesnionName to configurationManager
when fetching TypoScript _LOCAL_LANG labels.
Without this parameter configurationManager returns configuration
of the current plugin.
For example having
<f:translate key="foo" extensionName="news" />
in the blog_example extension template should load translation
from "news" extesnion.

This patch also makes LocalizationUtility::loadTypoScriptLabels()
testable.

Resolves: #46042
Releases: 4.7, 6.0, 6.1
Change-Id: If3785617defe2894cf3a8dc201e66acd182c18c0
Reviewed-on: https://review.typo3.org/19908
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Backport Flow property mapper

In order to be in sync with Flow again the property mapper has been
backported again.

Resolves: #47182
Releases: 6.1
Change-Id: I28712c643da54d203549f503a7721a14b0c8eb29
Reviewed-on: https://review.typo3.org/19906
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Andreas Wolf
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[BUGFIX] getPlainValue for @lazy objects

Typo3DbBackend::getPlainValue now loads lazy objects if they are
instances of LazyLoadingProxy

Fixes: #28149
Releases: 6.1, 6.0
Change-Id: Ibb7c342d2e0910190dcf414cef60a0e7d5f9d051
Reviewed-on: https://review.typo3.org/19913
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Typo3DbBackend: Drop non-functional code

array_fill_keys() used without function

Resolves: #47185
Releases: 1.3, 4.7, 6.0, 6.1
Change-Id: Ic6d11e4cfbd579f6847c8c30245933697ac3b5ce
Reviewed-on: https://review.typo3.org/19914
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
[BUGFIX] Only throw tooDirty if uid part of cleanProperties

AbstractEntity tooDirty Error should be thrown only if uid field is
actually part of the cleanProperties Array

Change-Id: I6b093b7363d4b7c1fdc0f823f7c1ef66bb07b532
Resolves: #8066
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/2655
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
[BUGFIX] Call RequestHandlerResolver also for CLI requests

Currently the bootstrap does not call the RequestHandlerResolver
for CLI requests but instantiates RequestHandler and Response
on its own.

Fixes: #39140
Releases: 6.1
Change-Id: I37a9b31c74f04cadb3a2f99c15f08a4425428de5
Reviewed-on: https://review.typo3.org/17393
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
[TASK] Typo3DbBackend, getRowsFromResult(): Drop source-argument

Only an internal function and $source is not used.

Resolves: #47187
Releases: 6.1
Change-Id: I8c3672d3dafc033a0b3a3c9292845c4e92dc4946
Reviewed-on: https://review.typo3.org/19917
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
[BUGFIX] Clearing label through TS doesn't work

Overriding labels of non-default languages using TypoScript
fails if the value is empty.
The problem is that we cannot distinguish between missing translations
and labels cleared by TypoScript.
(In both cases ['target'] === "")

Fixes: #43959
Releases: 6.1, 6.0, 4.7, 4.6
Change-Id: I06697d44a5e4621f8bf45feb5fd3551705af8a2b
Reviewed-on: https://review.typo3.org/19619
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
[TASK] Detect inject methods more strictly

Bugport from Flow https://review.typo3.org/#/c/13566/.
It checks method name to prevent using for example injectingFoo.

Change-Id: I5a70c3b21682143cd515bb2fe9ca03618bf834d4
Resolves: #40337
Releases: 6.1
Reviewed-on: https://review.typo3.org/16511
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring