메소드 | 설명 | |
---|---|---|
__construct ( $router = null ) | ||
addRequestFilter ( Ergo\Routing\RequestFilter $filter ) | Adds an {@link RequestFilter} to the controller | |
configure ( $script ) | Executes a php script in the context of the controller for configuration | |
connect ( $url, $name, $controller = null ) | Defines a url, a route name and an optional controller | |
execute ( $request ) | * (non-phpdoc) | |
setControllerResolver ( Ergo\Routing\ControllerResolver $factory ) | Sets an optional controller factory to use to build controllers |
메소드 | 설명 | |
---|---|---|
_controllerFor ( $name ) | Gets a controller for a path, either from a locally registered controller or one from a controller factory |
public addRequestFilter ( Ergo\Routing\RequestFilter $filter ) | ||
$filter | Ergo\Routing\RequestFilter |
public configure ( $script ) |
public connect ( $url, $name, $controller = null ) | ||
$url | string the url to connect the route to | |
$name | string an arbitrary controller name, must be unique | |
$controller | mixed either a controller class, or the name of another route |
public setControllerResolver ( Ergo\Routing\ControllerResolver $factory ) | ||
$factory | Ergo\Routing\ControllerResolver |