diff options
| author | winter | 2024-12-07 21:44:42 +0000 |
|---|---|---|
| committer | winter | 2024-12-07 21:44:42 +0000 |
| commit | a84232811dadccf7047424f27340a7f9847bedff (patch) | |
| tree | a6a0823c8b9485b6a5b60ea7ae854f9511a6ae1e /index.php | |
| parent | e1ad307b531c27ec6bfaf8b4d018991b0d4a78f3 (diff) | |
many many changes but actors are loaded from db now
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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(); |
