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

Public Member Functions

 __construct (protected readonly UriBuilder $uriBuilder, protected readonly FormProtectionFactory $formProtectionFactory)
 
ResponseInterface logoutAction (ServerRequestInterface $request)
 

Protected Member Functions

 processLogout (ServerRequestInterface $request)
 
 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 39 of file LogoutController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\LogoutController::__construct ( protected readonly UriBuilder  $uriBuilder,
protected readonly FormProtectionFactory  $formProtectionFactory 
)

Definition at line 41 of file LogoutController.php.

Member Function Documentation

◆ getBackendUser()

TYPO3\CMS\Backend\Controller\LogoutController::getBackendUser ( )
protected

◆ 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 54 of file LogoutController.php.

References TYPO3\CMS\Backend\Routing\UriBuilder\ABSOLUTE_URL, and TYPO3\CMS\Backend\Controller\LogoutController\processLogout().

◆ processLogout()

TYPO3\CMS\Backend\Controller\LogoutController::processLogout ( ServerRequestInterface  $request)
protected