Commit 7a8e04cb by Taylor Otwell

Added comment to Router class.

parent f0b02caa
......@@ -44,6 +44,9 @@ class Router {
if (preg_match('#^'.$key.'$#', $method.' '.$uri))
{
// Remove the leading slashes from the route and request URIs. Also trim
// the request method off of the route URI. This should get the request
// and route URIs in the same format so we can extract the parameters.
$uri = trim($uri, '/');
$key = trim(substr($key, strlen($method.' ')), '/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment