$name
$name : string
A route is identified by its name
The CLIRoute class
$defaultResponse : \Orpheus\InputController\OutputResponse
Default response if controller returns is invalid
isMatchingRequest(\Orpheus\InputController\CLIController\CLIRequest $request, array $values = array(), boolean $alternative = false)
Test current route is matching request
\Orpheus\InputController\CLIController\CLIRequest | $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) : \Orpheus\InputController\CLIController\CLIRoute
Get the route object for the $route name
string | $route |
prepare(\Orpheus\InputController\CLIController\CLIRequest $request)
Prepare environment for this route
\Orpheus\InputController\CLIController\CLIRequest | $request |