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 66ab513 commit 437d756
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Matcher/Dumper/PhpMatcherDumper.php
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

0 comments on commit 437d756

Please sign in to comment.