[MVC] Исправление автозагрузки классов в App.php

This commit is contained in:
kirill.khorkov
2026-01-03 11:56:22 +03:00
parent 6fdf188052
commit e696bee5ca

View File

@@ -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();