EmptyRequestHandler
final class EmptyRequestHandler implements RequestHandlerInterface (View source)
A test request handler that does absolutely nothing.
Useful for testing a Flow Bootstrap without having run a full boot sequence. E.g. performance of Bootstrap->run() without boot sequence (to compare against with boot sequence).
Methods
Handles a raw request
Checks if the request handler can handle the current request.
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".
Details
void
handleRequest()
Handles a raw request
mixed
canHandleRequest()
Checks if the request handler can handle the current request.
int
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".