Code cleanup.

This commit is contained in:
PJ Dietz 2012-09-16 22:44:29 -04:00
parent 5af80d8b1d
commit 4c0434399a
2 changed files with 1 additions and 3 deletions

View File

@ -71,9 +71,6 @@ class Route {
$pattern = '';
// REGEX for idenifying Level 1 URI Templates, like /foo/{bar}
$expressionPattern = '/{([a-zA-Z]+)}/';
// Explode the template into an array of path segments.
if ($uriTemplate[0] === '/') {
$parts = explode('/', substr($uriTemplate, 1));

View File

@ -57,6 +57,7 @@ class Router {
require_once($route->handlerPath);
}
// TODO: Need to rethink this plan. May not have a $request yet.
return $handler = new $klass($request, $matches);
}