From 6f247f3ab7b8216c2777b7d04fcdebca7b325a81 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 9 Aug 2023 00:59:07 +0200 Subject: [PATCH] Make route debug more readable --- app/Controller/HelloWorldController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/HelloWorldController.php b/app/Controller/HelloWorldController.php index 282a990..7f2af8b 100644 --- a/app/Controller/HelloWorldController.php +++ b/app/Controller/HelloWorldController.php @@ -32,7 +32,7 @@ class HelloWorldController public function routes(RouterConfig $config): ResponseInterface { $routes = implode('
', array_map( - fn($route) => $route->getRoute()->path, + fn($route) => sprintf('%s - %s->%s', $route->getRoute()->path, $route->getController(), $route->getMethod()), $config->getRoutes() ));