‪TYPO3CMS  ‪main
TYPO3\CMS\Reactions\Http\ReactionHandler Class Reference

Public Member Functions

 __construct (private readonly ReactionRegistry $reactionRegistry, private readonly LoggerInterface $logger, private readonly LanguageServiceFactory $languageServiceFactory)
 
 handleReaction (ServerRequestInterface $request, ?ReactionInstruction $reactionInstruction, ReactionUserAuthentication $user)
 

Protected Member Functions

 getPayload (ServerRequestInterface $request)
 
 buildReactionResponse (ResponseInterface $response)
 

Detailed Description

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.

Definition at line 39 of file ReactionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Reactions\Http\ReactionHandler::__construct ( private readonly ReactionRegistry  $reactionRegistry,
private readonly LoggerInterface  $logger,
private readonly LanguageServiceFactory  $languageServiceFactory 
)

Definition at line 41 of file ReactionHandler.php.

Member Function Documentation

◆ buildReactionResponse()

TYPO3\CMS\Reactions\Http\ReactionHandler::buildReactionResponse ( ResponseInterface  $response)
protected

◆ getPayload()

TYPO3\CMS\Reactions\Http\ReactionHandler::getPayload ( ServerRequestInterface  $request)
protected

◆ handleReaction()

TYPO3\CMS\Reactions\Http\ReactionHandler::handleReaction ( ServerRequestInterface  $request,
?ReactionInstruction  $reactionInstruction,
ReactionUserAuthentication  $user 
)