‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Controller\LogoutController Class Reference

Public Member Functions

ResponseInterface logoutAction (ServerRequestInterface $request)
 

Protected Member Functions

 processLogout ()
 
TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser ()
 

Detailed Description

Script Class for logging a user out. Does not display any content, just calls the logout-function for the current user and then makes a redirect.

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 35 of file LogoutController.php.

Member Function Documentation

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Backend\Controller\LogoutController::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 79 of file LogoutController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\LogoutController\processLogout().

◆ logoutAction()

ResponseInterface TYPO3\CMS\Backend\Controller\LogoutController::logoutAction ( ServerRequestInterface  $request)

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now This will be split up in an abstract controller once proper routing/dispatcher is in place.

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 45 of file LogoutController.php.

References TYPO3\CMS\Backend\Controller\LogoutController\processLogout().

◆ processLogout()