Skip to content

Commit 6068df6

Browse files
committed
chore: move namespace away from user
1 parent 3e540ca commit 6068df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Core.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ public static function runApplication()
275275
$routePath = static::$paths['routes'];
276276
$routeFiles = glob("$routePath/*.php");
277277

278+
app()->setNamespace('\App\Controllers');
279+
278280
require "$routePath/index.php";
279281

280282
foreach ($routeFiles as $routeFile) {

0 commit comments

Comments
 (0)