‪TYPO3CMS  ‪main
TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver Class Reference
Inheritance diagram for TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver:

Public Member Functions

 __construct (private readonly LoggerInterface $logger, private readonly ReactionHandler $reactionHandler, private readonly ReactionRepository $reactionRepository, private readonly ResponseFactoryInterface $responseFactory, private readonly StreamFactoryInterface $streamFactory,)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 resolveReactionSecret (ServerRequestInterface $request)
 
 getFailureResponse (string $errorMessage, ServerRequestInterface $request, int $statusCode=400)
 

Detailed Description

Hooks into the backend request, and checks if a reaction is triggered, if so, jump directly to the ReactionHandler.

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

Definition at line 41 of file ReactionResolver.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver::__construct ( private readonly LoggerInterface  $logger,
private readonly ReactionHandler  $reactionHandler,
private readonly ReactionRepository  $reactionRepository,
private readonly ResponseFactoryInterface  $responseFactory,
private readonly StreamFactoryInterface  $streamFactory 
)

Definition at line 43 of file ReactionResolver.php.

Member Function Documentation

◆ getFailureResponse()

TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver::getFailureResponse ( string  $errorMessage,
ServerRequestInterface  $request,
int  $statusCode = 400 
)
protected

◆ process()

TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

◆ resolveReactionSecret()

TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver::resolveReactionSecret ( ServerRequestInterface  $request)
protected