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

Public Member Functions

ResponseInterface logoutAction (ServerRequestInterface $request)
 
 logout ()
 

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 30 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 85 of file LogoutController.php.

References $GLOBALS.

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

◆ logout()

TYPO3\CMS\Backend\Controller\LogoutController::logout ( )

Performs the logout processing

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0

Definition at line 58 of file LogoutController.php.

References 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 40 of file LogoutController.php.

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

◆ processLogout()