BackendUser::start() 

\nn\t3::BackendUser()->start(); 

Start (fake) backend user. Solves the problem that, for example, certain functions from the scheduler such as log() are not possible if there is no active BE user.

\nn\t3::BackendUser()->start();
Copied!

| @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Source Code 

public function start()
{
	if (!($GLOBALS['BE_USER'] ?? null)) {
		$request = $GLOBALS['TYPO3_REQUEST'] ?? null;
		if ($request) {
			// TYPO3 v13: Use BackendUserAuthentication directly
			$backendUser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Authentication\BackendUserAuthentication::class);
			$backendUser->start($request);
			$GLOBALS['BE_USER'] = $backendUser;
		}
	}
	return $GLOBALS['BE_USER'] ?? null;
}
Copied!