Commit: 15f7ee94848724a055cb6d84d17676625edaf2f5

Author: Nate Abele | Date: 2010-03-09 14:56:13 -0500
Fixing class reference in `\action\Controller` docblock. Adding docs to `\net\http\Router::connect()`.
diff --git a/libraries/lithium/action/Controller.php b/libraries/lithium/action/Controller.php index a91233a..6f0e36b 100644 --- a/libraries/lithium/action/Controller.php +++ b/libraries/lithium/action/Controller.php @@ -20,7 +20,7 @@ use \Exception; * classes. Each action has a specific responsibility, such as listing a set of objects, updating an * object, or deleting an object. * - * A controller object is instanciated by the `Dispatcher` (`lithium\net\http\Dispatcher`), and is + * A controller object is instanciated by the `Dispatcher` (`lithium\action\Dispatcher`), and is * given an instance of the `lithium\action\Request` class, which contains all necessary request * state, including routing information, `GET` & `POST` data, and server variables. The controller * is then invoked (using PHP's magic `__invoke()` syntax), and the proper action is called, diff --git a/libraries/lithium/net/http/Router.php b/libraries/lithium/net/http/Router.php index 551ddeb..4f327ee 100644 --- a/libraries/lithium/net/http/Router.php +++ b/libraries/lithium/net/http/Router.php @@ -40,13 +40,18 @@ class Router extends \lithium\core\StaticObject { ); /** - * Connects a new route and returns the current routes array. + * Connects a new route and returns the current routes array. This method creates a new + * `Route` object and registers it with the `Router`. The order in which routes are connected + * matters, since the order of precedence is taken into account in parsing and matching + * operations. * + * @see lithium\net\http\Route + * @see lithium\net\http\Router::parse() + * @see lithium\net\http\Router::match() * @param string $template An empty string, or a route string "/" * @param array $params An array describing the default or required elements of the route * @param array $options * @return array Array of routes - * @see lithium\net\http\Router::parse() */ public static function connect($template, $params = array(), array $options = array()) { if (!is_object($template)) {