[TASK] Use fully qualified name resolution in PHP 5.5
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Classes / Hook / SwitchBackUserHook.php
index 7febb50..863836d 100644 (file)
@@ -40,7 +40,7 @@ class SwitchBackUserHook {
        public function switchBack($params, AbstractUserAuthentication $authentication) {
                if ($this->isAHandledBackendSession($authentication)) {
                        $objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
-                       $backendUserSessionRepository = $objectManager->get('TYPO3\\CMS\\Beuser\\Domain\\Repository\\BackendUserSessionRepository');
+                       $backendUserSessionRepository = $objectManager->get(\TYPO3\CMS\Beuser\Domain\Repository\BackendUserSessionRepository::class);
                        $backendUserSessionRepository->switchBackToOriginalUser($authentication);
                        HttpUtility::redirect($GLOBALS['BACK_PATH'] . 'backend.php');
                }