ReactionResolver implements MiddlewareInterface
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.
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
- getFailureResponse() : ResponseInterface
- resolveReactionSecret() : string
Methods
__construct()
public
__construct(LoggerInterface $logger, ReactionHandler $reactionHandler, ReactionRepository $reactionRepository, ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory) : mixed
Parameters
- $logger : LoggerInterface
- $reactionHandler : ReactionHandler
- $reactionRepository : ReactionRepository
- $responseFactory : ResponseFactoryInterface
- $streamFactory : StreamFactoryInterface
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacegetFailureResponse()
protected
getFailureResponse(string $errorMessage, ServerRequestInterface $request[, int $statusCode = 400 ]) : ResponseInterface
Parameters
- $errorMessage : string
- $request : ServerRequestInterface
- $statusCode : int = 400
Return values
ResponseInterfaceresolveReactionSecret()
protected
resolveReactionSecret(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface