Fixing comments on Router class.

This commit is contained in:
Taylor Otwell 2011-07-07 12:18:53 -07:00
parent 5a67571020
commit 59e5cfc711
1 changed files with 2 additions and 4 deletions

View File

@ -23,8 +23,7 @@ public static function route($method, $uri)
static::$routes = (is_dir(APP_PATH.'routes')) ? static::load($uri) : require APP_PATH.'routes'.EXT;
}
// Put the request method and URI in route form. All routes begin with
// the request method and a forward slash.
// Put the request method and URI in route form. Routes begin with the request method and a forward slash.
$uri = $method.' /'.trim($uri, '/');
// Is there an exact match for the request?
@ -35,8 +34,7 @@ public static function route($method, $uri)
foreach (static::$routes as $keys => $callback)
{
// Only check routes that have multiple URIs or wildcards. All other routes would
// have been caught by a literal match.
// Only check routes that have multiple URIs or wildcards. Other routes would be caught by a literal match.
if (strpos($keys, '(') !== false or strpos($keys, ',') !== false )
{
foreach (explode(', ', $keys) as $key)