aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorwinter2024-12-07 21:44:42 +0000
committerwinter2024-12-07 21:44:42 +0000
commita84232811dadccf7047424f27340a7f9847bedff (patch)
treea6a0823c8b9485b6a5b60ea7ae854f9511a6ae1e /index.php
parente1ad307b531c27ec6bfaf8b4d018991b0d4a78f3 (diff)
many many changes but actors are loaded from db now
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/index.php b/index.php
index 54f1043..43603aa 100644
--- a/index.php
+++ b/index.php
@@ -1,17 +1,14 @@
<?php
-spl_autoload_register(function ($class) {
- $file = str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
- require $file;
-});
+require __DIR__ . '/vendor/autoload.php';
-function autoload_glob(string $pattern) {
+function require_all_glob(string $pattern) {
foreach (glob($pattern) as $filename) {
require $filename;
}
}
-autoload_glob('routes/*.php');
-autoload_glob('misc/*.php');
+require_all_glob('routes/*.php');
+require_all_glob('misc/*.php');
WpfTest\Router::getInstance()->processRequest();