Orpheus

RequestHandler
in package

AbstractYes

Official RequestHandler for Orpheus

Tags
author

Florent HAZARD f.hazard@sowapps.com

We should also implement a service system to allow a class/object to provide a feature that is required by other lib without they are knowning the lib implementing it

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

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
string

getRouteClass()

Get the Route Class

public static getRouteClass(string $type) : string
Parameters
$type : string
Return values
string

handleCurrentRequest()

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
Tags
see
setHandler()

The difference with setHandler() is that only set if there is no current value


							
On this page

Search results