Skip to content

Commit

Permalink
chore: move namespace away from user
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Nov 30, 2024
1 parent 3e540ca commit 6068df6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6068df6

Please sign in to comment.