Added support for autoloading, event handlers, and more

This commit is contained in:
Gregory Magarshak
2026-07-20 12:16:01 -04:00
parent fe52e9a82b
commit 1672e0ce4e
5 changed files with 683 additions and 86 deletions
+5
View File
@@ -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