메소드 |
설명 |
|
__construct ( $resolver = null ) |
Constructor |
|
alias ( $template, $name, $to ) |
Register an alias from one route name to another |
|
buildUrl ( string $name, array $parameters = [], $baseUrl = null ) |
Build a URL path based on a route name and associated parameters. |
|
configure ( $file ) |
Configures the routemap from a php file |
|
connect ( $template, $name, $controller = null, $metadata = [] ) |
Gives a route template a unique name and a controller to route to |
|
controller ( $name ) |
Looks up a controller from a route name |
|
execute ( $request ) |
* (non-phpdoc) |
|
lookup ( string $path ) : RouteMatch |
Looks up a route match based on a url path |
|
metadata ( $routeName ) : array |
Looks up metadata for a route name |
|
redirect ( $template, $name, $to ) |
Create a redirect from a particular route name to another |
|
routeByName ( $name ) : Route |
Looks up a route by name |
|
setBaseUrl ( $url ) |
Sets a base url for url building |
|
setDefaultMetadata ( $metadata ) |
Sets the default metadata to be set into routes |
|