diff --git a/app/Core/App.php b/app/Core/App.php index 812c62b..f39c329 100644 --- a/app/Core/App.php +++ b/app/Core/App.php @@ -13,6 +13,10 @@ class App public function __construct() { self::$instance = $this; + + // Регистрируем автозагрузчик сразу + $this->registerAutoloader(); + $this->router = new Router(); } @@ -42,9 +46,6 @@ class App session_start(); } - // Регистрируем автозагрузчик - $this->registerAutoloader(); - // Настраиваем обработку ошибок $this->setupErrorHandling();