public static connect ( string | object $template, array | string $params = [], array | callable $options = [] ) : array | ||
$template | string | object | An empty string, a route string `/` or an instance of `lithium\net\http\Route`. |
$params | array | string | An array describing the default or required elements of the route or alternatively a path string i.e. `Posts::index`. |
$options | array | callable | Either an array of options (`'handler'`, `'formatters'`, `'modifiers'`, `'unicode'` as well as any options for `Route`) or a callable that will be used as a route handler. |
return | array | Array of routes |