Make route debug more readable

This commit is contained in:
Tim 2023-08-09 00:59:07 +02:00
parent fdd1744b35
commit 6f247f3ab7

View File

@ -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()
));