LogoutController
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.
Attributes
- #[AsController]
Table of Contents
Properties
Methods
- __construct() : mixed
- logoutAction() : ResponseInterface
- 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.
- getBackendUser() : BackendUserAuthentication
- processLogout() : void
- Performs the logout processing
Properties
$formProtectionFactory read-only
protected
FormProtectionFactory
$formProtectionFactory
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(UriBuilder $uriBuilder, FormProtectionFactory $formProtectionFactory) : mixed
Parameters
- $uriBuilder : UriBuilder
- $formProtectionFactory : FormProtectionFactory
logoutAction()
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.
public
logoutAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
-
the current request
Return values
ResponseInterface —the response with the content
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationprocessLogout()
Performs the logout processing
protected
processLogout(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface