From bbe76ccaf9847aa8aebcf0e6e55fd4d1f260e5d8 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 9 Jul 2022 20:42:27 +0200 Subject: [PATCH] Move Router into root namespace --- .../framework/src/Models/NavigationMenu.php | 2 +- packages/framework/src/Models/Route.php | 2 +- .../framework/src/{Services => }/Router.php | 2 +- .../framework/src/Services/BuildService.php | 1 + packages/framework/tests/Feature/RouteTest.php | 2 +- .../framework/tests/Feature/RouterTest.php | 18 +++++++++--------- 6 files changed, 14 insertions(+), 13 deletions(-) rename packages/framework/src/{Services => }/Router.php (99%) diff --git a/packages/framework/src/Models/NavigationMenu.php b/packages/framework/src/Models/NavigationMenu.php index b965aa52c36..9bfeb82e50d 100644 --- a/packages/framework/src/Models/NavigationMenu.php +++ b/packages/framework/src/Models/NavigationMenu.php @@ -3,7 +3,7 @@ namespace Hyde\Framework\Models; use Hyde\Framework\Contracts\RouteContract; -use Hyde\Framework\Services\Router; +use Hyde\Framework\Router; use Illuminate\Support\Collection; /** diff --git a/packages/framework/src/Models/Route.php b/packages/framework/src/Models/Route.php index 4fba0b1511f..ab9d1203a89 100644 --- a/packages/framework/src/Models/Route.php +++ b/packages/framework/src/Models/Route.php @@ -7,7 +7,7 @@ use Hyde\Framework\Contracts\RouteFacadeContract; use Hyde\Framework\Exceptions\RouteNotFoundException; use Hyde\Framework\Hyde; -use Hyde\Framework\Services\Router; +use Hyde\Framework\Router; use Illuminate\Support\Collection; /** diff --git a/packages/framework/src/Services/Router.php b/packages/framework/src/Router.php similarity index 99% rename from packages/framework/src/Services/Router.php rename to packages/framework/src/Router.php index d9a4b069c98..7c7f3c1dbb4 100644 --- a/packages/framework/src/Services/Router.php +++ b/packages/framework/src/Router.php @@ -1,6 +1,6 @@