ReactionHandler
Endpoint for triggering the reaction handler.
Resolves the payload and calls the actual Reaction Type with the request, the payload, and sends the response in return.
At this point, the evaluation etc. all need to have happened.
This is a specific controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Methods
- __construct() : mixed
- handleReaction() : ResponseInterface
- buildReactionResponse() : ResponseInterface
- getPayload() : array<string|int, mixed>
Methods
__construct()
public
__construct(ReactionRegistry $reactionRegistry, LoggerInterface $logger, LanguageServiceFactory $languageServiceFactory) : mixed
Parameters
- $reactionRegistry : ReactionRegistry
- $logger : LoggerInterface
- $languageServiceFactory : LanguageServiceFactory
handleReaction()
public
handleReaction(ServerRequestInterface $request, ReactionInstruction|null $reactionInstruction, ReactionUserAuthentication $user) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $reactionInstruction : ReactionInstruction|null
- $user : ReactionUserAuthentication
Return values
ResponseInterfacebuildReactionResponse()
protected
buildReactionResponse(ResponseInterface $response) : ResponseInterface
Parameters
- $response : ResponseInterface
Return values
ResponseInterfacegetPayload()
protected
getPayload(ServerRequestInterface $request) : array<string|int, mixed>
Parameters
- $request : ServerRequestInterface