RequestHandler
in package
AbstractYes
Official RequestHandler for Orpheus
Tags
Table of Contents
Constants
- TYPE_CONSOLE = 'cli'
- TYPE_HTTP = 'http'
Properties
- $handlerClasses : array<string|int, mixed>
- Handler classes by type
Methods
- getHandler() : string
- Get the handler of $type
- getRouteClass() : string
- Get the Route Class
- handleCurrentRequest() : void
- Handle the current request
- setHandler() : void
- Set handle $class for $type
- suggestHandler() : void
- Suggest handle $class for $type
Constants
TYPE_CONSOLE
public
mixed
TYPE_CONSOLE
= 'cli'
TYPE_HTTP
public
mixed
TYPE_HTTP
= 'http'
Properties
$handlerClasses
Handler classes by type
protected
static array<string|int, mixed>
$handlerClasses
= []
Methods
getHandler()
Get the handler of $type
public
static getHandler(string $type) : string
Parameters
- $type : string
Return values
stringgetRouteClass()
Get the Route Class
public
static getRouteClass(string $type) : string
Parameters
- $type : string
Return values
stringhandleCurrentRequest()
Handle the current request
public
static handleCurrentRequest(string $type) : void
Parameters
- $type : string
setHandler()
Set handle $class for $type
public
static setHandler(string $type, string $class) : void
Parameters
- $type : string
- $class : string
suggestHandler()
Suggest handle $class for $type
public
static suggestHandler(string $type, string $class) : void
Parameters
- $type : string
- $class : string