Skip to content

Commit

Permalink
[Routing] removed an optimization as it does not always work as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 17, 2011
1 parent 968cc75 commit c536797
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ private function compileRoutes(RouteCollection $routes, $supportsRedirections, $
}

if ($optimizable && $prefix !== $parentPrefix) {
$code[] = " throw 0 < count(\$allow) ? new MethodNotAllowedException(array_unique(\$allow)) : new ResourceNotFoundException();";
$code[] = " }\n";
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ public function match($pathinfo)
return $matches;
}

throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}

// ababa
Expand All @@ -139,7 +138,6 @@ public function match($pathinfo)
return $matches;
}

throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}

// foo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public function match($pathinfo)
return $matches;
}

throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}

// ababa
Expand All @@ -151,7 +150,6 @@ public function match($pathinfo)
return $matches;
}

throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}

// foo
Expand Down

0 comments on commit c536797

Please sign in to comment.