From 2496c52cff50861f8cb77d619207e68c16b804ea Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Fri, 7 Jun 2024 13:03:26 +0300 Subject: [PATCH] Issue #277: sort routes by name Signed-off-by: alexmerlin --- src/App/src/Command/RouteListCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/src/Command/RouteListCommand.php b/src/App/src/Command/RouteListCommand.php index 9d4158b..2fda470 100644 --- a/src/App/src/Command/RouteListCommand.php +++ b/src/App/src/Command/RouteListCommand.php @@ -64,7 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int continue; } - $routes[sprintf('%s:%s', $method, $route->getPath())] = [ + $routes[sprintf('%s:%s', $route->getName(), $method)] = [ 'name' => $route->getName(), 'path' => $route->getPath(), 'method' => $method,