SwitchUserController

Internal

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

Attributes
#[AsController]

Table of Contents

Constants

RECENT_USERS_LIMIT  = 3

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

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
ResponseInterface

switchUserAction()

Handle switching current user to the requested target user

public switchUserAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

generateListOfMostRecentSwitchedUsers()

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>

jsonResponse()

protected jsonResponse(array<string|int, mixed> $data) : ResponseInterface
Parameters
$data : array<string|int, mixed>
Return values
ResponseInterface

        
On this page

Search results