RequestHandlerInterface

The interface for a request handler

Table of Contents

Methods

canHandleRequest()  : bool
Checks if the request handler can handle the current request.
getPriority()  : int
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".
handleRequest()  : ResponseInterface
Handles a raw request and returns the response.

Methods

canHandleRequest()

Checks if the request handler can handle the current request.

public canHandleRequest(RequestInterface $request) : bool
Parameters
$request : RequestInterface
Return values
bool

TRUE if it can handle the request, otherwise FALSE

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".

public getPriority() : int
Return values
int

The priority of the request handler

handleRequest()

Handles a raw request and returns the response.

public handleRequest(RequestInterface $request) : ResponseInterface
Parameters
$request : RequestInterface
Return values
ResponseInterface

        
On this page

Search results