RequestHandlerInterface
Interface for handling requests from the server.
Tags
Table of Contents
Methods
- handle() : Response<string|int, TResult>|Error
- Handle the request and return a response or error.
- supports() : bool
- Check if this handler supports the given request.
Methods
handle()
Handle the request and return a response or error.
public
handle(Request $request) : Response<string|int, TResult>|Error
Parameters
- $request : Request
Return values
Response<string|int, TResult>|Errorsupports()
Check if this handler supports the given request.
public
supports(Request $request) : bool
Parameters
- $request : Request