protected function resetFrontendEnvironment() { $GLOBALS['TSFE'] = $this->tsfeBackup; chdir($this->workingDirectoryBackup); }