From 6068df6ff3bbe80b6139e301562f2dbef49f18db Mon Sep 17 00:00:00 2001 From: mychidarko Date: Sat, 30 Nov 2024 18:57:46 +0000 Subject: [PATCH] chore: move namespace away from user --- src/Core.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core.php b/src/Core.php index 9416efa..4b8a7a5 100644 --- a/src/Core.php +++ b/src/Core.php @@ -275,6 +275,8 @@ public static function runApplication() $routePath = static::$paths['routes']; $routeFiles = glob("$routePath/*.php"); + app()->setNamespace('\App\Controllers'); + require "$routePath/index.php"; foreach ($routeFiles as $routeFile) {