mirror of
https://github.com/Qbix/webserver.git
synced 2026-07-22 07:57:23 +02:00
Added support for autoloading, event handlers, and more
This commit is contained in:
@@ -107,6 +107,11 @@ if (!$webDir || !is_dir($webDir)) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Initialize Q with the project root (parent of web/)
|
||||
// This sets up autoloading from classes/ and handlers from handlers/
|
||||
$projectRoot = dirname($webDir);
|
||||
Q::init($projectRoot);
|
||||
|
||||
// ── Load config ─────────────────────────────────────
|
||||
|
||||
// Default server config
|
||||
|
||||
Reference in New Issue
Block a user