From c0373fefe1ecbab669bc3074f5901f147226676c Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 20 Apr 2023 18:06:17 +0200 Subject: [PATCH] fix: attempt to autoload propery --- index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.php b/index.php index bf9ffebe..e4e97dca 100644 --- a/index.php +++ b/index.php @@ -26,6 +26,8 @@ spl_autoload_register( return; } + $absoluteNamespace = str_replace('\\\\', '/', $absoluteNamespace); + $filepath = ROOT . '/src/classes/' . $absoluteNamespace . '.php'; require $filepath;