[BUGFIX] ConfigurationManager must use namespaced FrontendSimulator
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Fri, 25 Jan 2013 13:19:24 +0000 (14:19 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 25 Jan 2013 14:21:05 +0000 (15:21 +0100)
Since TYPO3 6.0 all classes are namespaced.
Though a compatibility layer exists all calls on old
class names should be avoided, so this patch replaces
calls on Tx_Extbase_Utility_FrontendSimulator with
\TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility.

Releases: 6.1, 6.0
Fixes: #44806
Change-Id: I60dd5f4fee8d5df8a79bb931e946a867b0083291
Reviewed-on: https://review.typo3.org/17703
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/extbase/Classes/Configuration/AbstractConfigurationManager.php

index 72c8337..016a4c4 100755 (executable)
@@ -175,12 +175,12 @@ abstract class AbstractConfigurationManager implements \TYPO3\CMS\Core\Singleton
                                        * and apply the stdWrap to the storagePid
                                        */
                                if (TYPO3_MODE !== 'FE') {
-                                       Tx_Extbase_Utility_FrontendSimulator::simulateFrontendEnvironment($this->getContentObject());
+                                       \TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment($this->getContentObject());
                                }
                                $conf = $this->typoScriptService->convertPlainArrayToTypoScriptArray($frameworkConfiguration['persistence']);
                                $frameworkConfiguration['persistence']['storagePid'] = $GLOBALS['TSFE']->cObj->stdWrap($conf['storagePid'], $conf['storagePid.']);
                                if (TYPO3_MODE !== 'FE') {
-                                       Tx_Extbase_Utility_FrontendSimulator::resetFrontendEnvironment();
+                                       \TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::resetFrontendEnvironment();
                                }
                        }