[BUGFIX] Do not inject non-singleton class into singleton 33/50033/7
authorMarkus Klein <markus.klein@typo3.org>
Tue, 27 Sep 2016 22:22:31 +0000 (00:22 +0200)
committerNicole Cordes <typo3@cordes.co>
Mon, 3 Apr 2017 21:42:03 +0000 (23:42 +0200)
commitaeda613ad1d21a1d5a1cd15799e97083b086ac3b
treec0bcd987edb4c297f2ff8b5ab1b97a4b45436746
parent2510406d1c81e60c571d003c380f5c2a1f983635
[BUGFIX] Do not inject non-singleton class into singleton

BackendConfigurationManager must not inject an instance of
QueryGenerator as the latter is not a singleton.
Instead create a local instance of QueryGenerator when it is needed.

Releases: master
Resolves: #48544
Change-Id: If58f3a5c9c6a1003a0301bd2d68622ee8ccba843
Reviewed-on: https://review.typo3.org/50033
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php
typo3/sysext/extbase/Tests/Unit/Configuration/BackendConfigurationManagerTest.php