Skip to content

Commit

Permalink
Remove direct match with HTTP verb = method name
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 2, 2018
1 parent c05ad87 commit 1610bfd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/php/web/frontend/Frontend.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ public function __construct($handler, Templates $templates, $base= '') {
*/
private function handler($verb, $uri) {

// Direct match
if ($this->type->hasMethod($verb)) return [$this->type->getMethod($verb), []];

// Check methods annotated, e.g. @post
foreach ($this->type->getMethods() as $method) {
if (!$method->hasAnnotation($verb)) continue;
Expand Down

0 comments on commit 1610bfd

Please sign in to comment.