Merge pull request #359 from akuzemchak/feature/load-route

Load designated route's response
This commit is contained in:
Taylor Otwell
2012-03-21 09:15:42 -07:00

View File

@@ -381,4 +381,16 @@ class Route {
Filter::register($name, $callback);
}
/**
* Calls the specified route and returns its response.
*
* @param string $method
* @param string $uri
* @return Response
*/
public static function load($method, $uri)
{
return Router::route(strtoupper($method), $uri)->call();
}
}