Property | Type | Description | |
---|---|---|---|
$container | |||
$dispatched_http_method | |||
$dispatched_url | |||
$dispatcher | FastRoute\Dispatcher\GroupCountBased | ||
$named_routes | |||
$route_info | |||
$routes | dietcube\RouteInterface[] |
Method | Description | |
---|---|---|
__construct ( Pimple\Container $container ) | ||
addRoute ( dietcube\RouteInterface $route ) | ||
dispatch ( string $http_method, string $url ) : array | URL からディスパッチ対象を取得する | |
getDispatchedMethod ( ) | ||
getDispatchedUrl ( ) | ||
getRouteInfo ( ) | ||
init ( ) | ||
url ( string $handler, array $data = [], array $query_params = [], boolean $is_absolute = false ) : string | Generate URL from route name (handler name). |
Method | Description | |
---|---|---|
buildNameIndex ( ) |
public __construct ( Pimple\Container $container ) | ||
$container | Pimple\Container |
public addRoute ( dietcube\RouteInterface $route ) | ||
$route | dietcube\RouteInterface |
public url ( string $handler, array $data = [], array $query_params = [], boolean $is_absolute = false ) : string | ||
$handler | string | Route handler name |
$data | array | Route URI segments replacement data |
$query_params | array | Optional query string parameters |
$is_absolute | boolean | Whether generate absolute url or not |
return | string |
protected GroupCountBased,FastRoute\Dispatcher $dispatcher | ||
return | FastRoute\Dispatcher\GroupCountBased |