Свойство | Тип | Описание | |
---|---|---|---|
$container | Orno\Di\ContainerInterface | ||
$routes | array |
Метод | Описание | |
---|---|---|
__construct ( Orno\Di\ContainerInterface $container, array $routes, array $data ) | Constructor | |
dispatch ( string $method, string $uri ) : Orno\Http\ResponseInterface | Match and dispatch a route matching the given http method and uri | |
invokeController ( string | array | Closure $controller, array $vars = [] ) : Orno\Http\ResponseInterface | Invoke a controller action |
Метод | Описание | |
---|---|---|
determineResponse ( mixed $response ) : Orno\Http\ResponseInterface | Attempt to build a response | |
handleFound ( string | Closure $handler, integer | Orno\Route\CustomStrategyInterface $strategy, array $vars ) : Orno\Http\ResponseInterface | Handle dispatching of a found route | |
handleMethodArgumentStrategy ( string | array | Closure $controller, array $vars ) : Orno\Http\ResponseInterface | Handles response to Method Argument Strategy | |
handleNotAllowed ( array $allowed ) : Orno\Http\ResponseInterface | Handles a not allowed route | |
handleNotFound ( ) : Orno\Http\ResponseInterface | Handle a not found route | |
handleRequestResponseStrategy ( string | array | Closure $controller, array $vars = [] ) : Orno\Http\ResponseInterface | Handles response to Request -> Response Strategy based routes | |
handleRestfulStrategy ( string | array | Closure $controller, array $vars = [] ) : Orno\Http\ResponseInterface | Handles response to Restful Strategy based routes | |
handleUriStrategy ( string | array | Closure $controller, array $vars ) : Orno\Http\ResponseInterface | Handles response to URI Strategy based routes |
public __construct ( Orno\Di\ContainerInterface $container, array $routes, array $data ) | ||
$container | Orno\Di\ContainerInterface | |
$routes | array | |
$data | array |
protected determineResponse ( mixed $response ) : Orno\Http\ResponseInterface | ||
$response | mixed | |
Результат | Orno\Http\ResponseInterface |
protected handleNotAllowed ( array $allowed ) : Orno\Http\ResponseInterface | ||
$allowed | array | |
Результат | Orno\Http\ResponseInterface |
protected handleNotFound ( ) : Orno\Http\ResponseInterface | ||
Результат | Orno\Http\ResponseInterface |
protected ContainerInterface,Orno\Di $container | ||
Результат | Orno\Di\ContainerInterface |