[MVC] Исправление автозагрузки классов в App.php
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user