SwitchUserController
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Constants
Properties
- $eventDispatcher : EventDispatcherInterface
 - $responseFactory : ResponseFactoryInterface
 - $sessionBackend : SessionBackendInterface
 - $uriBuilder : UriBuilder
 
Methods
- __construct() : mixed
 - exitSwitchUserAction() : ResponseInterface
 - Handle exiting the switch user mode
 - switchUserAction() : ResponseInterface
 - Handle switching current user to the requested target user
 - generateListOfMostRecentSwitchedUsers() : array<string|int, int>
 - Generates a list of users to whom where switched in the past. This is limited by RECENT_USERS_LIMIT.
 - getBackendUserAuthentication() : BackendUserAuthentication
 - jsonResponse() : ResponseInterface
 
Constants
RECENT_USERS_LIMIT
    protected
        mixed
    RECENT_USERS_LIMIT
    = 3
    
    
    
    
Properties
$eventDispatcher
        protected
            EventDispatcherInterface
    $eventDispatcher
    
    
    
    
    
    
$responseFactory
        protected
            ResponseFactoryInterface
    $responseFactory
    
    
    
    
    
    
$sessionBackend
        protected
            SessionBackendInterface
    $sessionBackend
    
    
    
    
    
    
$uriBuilder
        protected
            UriBuilder
    $uriBuilder
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(EventDispatcherInterface $eventDispatcher, UriBuilder $uriBuilder, ResponseFactoryInterface $responseFactory) : mixed
    Parameters
- $eventDispatcher : EventDispatcherInterface
 - $uriBuilder : UriBuilder
 - $responseFactory : ResponseFactoryInterface
 
exitSwitchUserAction()
Handle exiting the switch user mode
    public
                    exitSwitchUserAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
 
Return values
ResponseInterfaceswitchUserAction()
Handle switching current user to the requested target user
    public
                    switchUserAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
 
Return values
ResponseInterfacegenerateListOfMostRecentSwitchedUsers()
Generates a list of users to whom where switched in the past. This is limited by RECENT_USERS_LIMIT.
    protected
                    generateListOfMostRecentSwitchedUsers(int $targetUserUid) : array<string|int, int>
    Parameters
- $targetUserUid : int
 
Return values
array<string|int, int>getBackendUserAuthentication()
    protected
                    getBackendUserAuthentication() : BackendUserAuthentication
    Return values
BackendUserAuthenticationjsonResponse()
    protected
                    jsonResponse(array<string|int, mixed> $data) : ResponseInterface
    Parameters
- $data : array<string|int, mixed>