‪TYPO3CMS  10.4
TYPO3\CMS\Core\Console\RequestHandlerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Console\RequestHandlerInterface:
TYPO3\CMS\Core\Console\CommandRequestHandler

Public Member Functions

OutputInterface null handleRequest (InputInterface $input)
 
bool canHandleRequest (InputInterface $input)
 
int getPriority ()
 

Detailed Description

The interface for a request handler for a console-based application

Deprecated:
‪not in use any since TYPO3 v10.0, will be removed in TYPO3 v11.0

Definition at line 28 of file RequestHandlerInterface.php.

Member Function Documentation

◆ canHandleRequest()

bool TYPO3\CMS\Core\Console\RequestHandlerInterface::canHandleRequest ( InputInterface  $input)

Checks if the request handler can handle the given request.

Parameters
InputInterface$input
Returns
‪bool TRUE if it can handle the request, otherwise FALSE

Implemented in TYPO3\CMS\Core\Console\CommandRequestHandler.

◆ getPriority()

int TYPO3\CMS\Core\Console\RequestHandlerInterface::getPriority ( )

Returns the priority - how eager the handler is to actually handle the request. An integer > 0 means "I want to handle this request" where "100" is default. "0" means "I am a fallback solution".

Returns
‪int The priority of the request handler

will get removed from the interface soon as this is not needed in TYPO3 v10.0 anymore.

Implemented in TYPO3\CMS\Core\Console\CommandRequestHandler.

◆ handleRequest()

OutputInterface null TYPO3\CMS\Core\Console\RequestHandlerInterface::handleRequest ( InputInterface  $input)

Handles a CLI request

Parameters
InputInterface$input
Returns
‪OutputInterface|null

Implemented in TYPO3\CMS\Core\Console\CommandRequestHandler.