From 6f0d950c33a9a7d2b4c1d98fd6b4313098ee56aa Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 4 Jul 2023 12:03:19 +0900 Subject: [PATCH] refactor: use DefinedRouteCollector in `spark routes` --- system/Commands/Utilities/Routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Commands/Utilities/Routes.php b/system/Commands/Utilities/Routes.php index 68d2f8d07d50..ee726d4aa93d 100644 --- a/system/Commands/Utilities/Routes.php +++ b/system/Commands/Utilities/Routes.php @@ -123,7 +123,7 @@ public function run(array $params) $sampleUri = $uriGenerator->get($route['route']); $filters = $filterCollector->get($route['method'], $sampleUri); - $routeName = ($route['route'] === $route['name']) ? '»' : $route['route']; + $routeName = ($route['route'] === $route['name']) ? '»' : $route['name']; $tbody[] = [ strtoupper($route['method']),