public match (mixed $callback) Allows to set a callback to handle the request directly in the route $router->add("/help", array())->match(function () { return $this->getResponse()->redirect('https://support.google.com/', true); });
public setHostname (mixed $hostname) Sets a hostname restriction to the route $route->setHostname('localhost');
public getRouteId () Returns the route’s id
public getName () Returns the route’s name
public getMatch () Returns the ‘match’ callback if any
public getPaths () Returns the paths
public getPattern () Returns the route’s pattern
public getReversedPaths () Returns the paths using positions as keys and names as values
public getHttpMethods () Returns the HTTP methods that constraint matching the route
public getCompiledPattern () Returns the route’s compiled pattern
Page 75 of 382