METHOD_GET
METHOD_GET
The HTTPRoute class
$defaultResponse : \Orpheus\InputController\OutputResponse
Default response if controller returns is invalid
isMatchingRequest(\Orpheus\InputController\HTTPController\HTTPRequest $request, array $values = array(), boolean $alternative = false)
Test current route is matching request
\Orpheus\InputController\HTTPController\HTTPRequest | $request | |
array | $values | |
boolean | $alternative | True if we are looking for an alternative route, because we did not find any primary one |
run(\Orpheus\InputController\InputRequest $request) : \Orpheus\InputController\OutputResponse
Run the $request by processing the matching controller
\Orpheus\InputController\InputRequest | $request |
processUserException(\Orpheus\Exception\UserException $exception, array $values = array()) : \Orpheus\InputController\OutputResponse
Process the given $exception with the default response
\Orpheus\Exception\UserException | $exception | |
array | $values |
processException(\Orpheus\Exception\UserException $exception) : \Orpheus\InputController\OutputResponse
Process the given $exception with the default response
\Orpheus\Exception\UserException | $exception |
instanciateController() : \Orpheus\InputController\Controller
Instanciate the controller and return it
getRoute(string $route, string $method = null) : \Orpheus\InputController\HTTPController\HTTPRoute
Get the route object for the $route name
string | $route | |
string | $method |
prepare(\Orpheus\InputController\HTTPController\HTTPRequest $request)
Prepare environment for this route
\Orpheus\InputController\HTTPController\HTTPRequest | $request |
register(string $name, string $path, string $controller, string|array $methods = null, array $restrictTo = null, string $defaultResponse, array $options = array())
Register route by $name
string | $name | |
string | $path | |
string | $controller | |
string|array | $methods | |
array | $restrictTo | |
string | $defaultResponse | |
array | $options |