src/Router.php
public function link($name, $params = [], $options = [])
    {
        $defaults = [
            'basePath' => $this->basePath()
        ];
        $options += $defaults;

        $params += $this->_defaults;

        if (!isset($this[$name])) {
            throw new RouterException("No binded route defined for `'{$name}'`, bind it first with `bind()`.");
        }
        $route = $this[$name];
        return $route->link($params, $options);
    }
public function link($name, $params = [], $options = [])
    {
        $defaults = [
            'basePath' => $this->basePath()
        ];
        $options += $defaults;

        $params += $this->_defaults;

        if (!isset($this[$name])) {
            throw new RouterException("No binded route defined for `'{$name}'`, bind it first with `bind()`.");
        }
        $route = $this[$name];
        return $route->link($params, $options);
    }
Returns a route's link.

@param  string $name    A route name.
@param  array  $params  The route parameters.
@param  array  $options Options for generating the proper prefix. Accepted values are:
- `'absolute'` _boolean_: `true` or `false`.
- `'scheme'`   _string_ : The scheme.
- `'host'`     _string_ : The host name.
- `'basePath'` _string_ : The base path.
- `'query'`    _string_ : The query string.
- `'fragment'` _string_ : The fragment string.
@return string          The link.