Skip to content

Commit

Permalink
Pass back the URI for better debugging capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Gordon committed Apr 16, 2014
1 parent ab89bcf commit c9226c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Dispatcher/GroupCountBased.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private function dispatchStaticRoute($httpMethod, $uri) {
} elseif ($httpMethod === 'HEAD' && isset($routes['GET'])) {
return [self::FOUND, $routes['GET'], []];
} else {
return [self::METHOD_NOT_ALLOWED, array_keys($routes)];
return [self::METHOD_NOT_ALLOWED, array_keys($routes), $uri];
}
}

Expand All @@ -43,7 +43,7 @@ private function dispatchVariableRoute($httpMethod, $uri) {
if ($httpMethod === 'HEAD' && isset($routes['GET'])) {
$httpMethod = 'GET';
} else {
return [self::METHOD_NOT_ALLOWED, array_keys($routes)];
return [self::METHOD_NOT_ALLOWED, array_keys($routes), $uri];
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Dispatcher/GroupPosBased.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private function dispatchStaticRoute($httpMethod, $uri) {
} elseif ($httpMethod === 'HEAD' && isset($routes['GET'])) {
return [self::FOUND, $routes['GET'], []];
} else {
return [self::METHOD_NOT_ALLOWED, array_keys($routes)];
return [self::METHOD_NOT_ALLOWED, array_keys($routes), $uri];
}
}

Expand All @@ -46,7 +46,7 @@ private function dispatchVariableRoute($httpMethod, $uri) {
if ($httpMethod === 'HEAD' && isset($routes['GET'])) {
$httpMethod = 'GET';
} else {
return [self::METHOD_NOT_ALLOWED, array_keys($routes)];
return [self::METHOD_NOT_ALLOWED, array_keys($routes), $uri];
}
}

Expand Down

0 comments on commit c9226c6

Please sign in to comment.