Ergo\Routing\RoutedController::connect PHP Method

connect() public method

Defines a url, a route name and an optional controller
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 function connect($url, $name, $controller = null)
    {
        $this->_router->connect($url, $name, $controller);
        // register the controller if one is provided
        if (!is_null($controller)) {
            $this->_controllers[$name] = $controller;
        }
        return $this;
    }