Make route debug more readable
This commit is contained in:
parent
fdd1744b35
commit
6f247f3ab7
@ -32,7 +32,7 @@ class HelloWorldController
|
||||
public function routes(RouterConfig $config): ResponseInterface
|
||||
{
|
||||
$routes = implode('<br>', array_map(
|
||||
fn($route) => $route->getRoute()->path,
|
||||
fn($route) => sprintf('%s - %s->%s', $route->getRoute()->path, $route->getController(), $route->getMethod()),
|
||||
$config->getRoutes()
|
||||
));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user