Skip to content

Commit

Permalink
fix the annotation RequestMapping name not saving to Route Objec… (#559)
Browse files Browse the repository at this point in the history
fix the annotation RequestMapping name not saving to Route Object.
  • Loading branch information
inhere committed Jan 13, 2020
2 parents 4a28608 + 0c53313 commit 56220d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-server/src/Router/RouteRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function registerRoutes(Router $router): void
$path = $routePath[0] === '/' ? $routePath : $prefix . '/' . $routePath;
$handler = $class . '@' . $route['action'];

$router->map($route['method'], $path, $handler, $route['params']);
$router->map($route['method'], $path, $handler, $route['params'], ['name' => $route['name']]);
}
}
}
Expand Down

0 comments on commit 56220d9

Please sign in to comment.