From 285e2de40c00a5131721f3e5d09991ffb61575f3 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 31 Jul 2024 19:12:24 +0000 Subject: [PATCH] Removed local PSR-4 autoloader implementation. I've fully moved to Composer and its autoloader is more optimised than this one could ever hope to be. --- VERSION | 2 +- index.php | 8 ---- src/Autoloader.php | 108 --------------------------------------------- 3 files changed, 1 insertion(+), 117 deletions(-) delete mode 100644 src/Autoloader.php diff --git a/VERSION b/VERSION index 87236e4..47c0813 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2407.311910 +0.2407.311911 diff --git a/index.php b/index.php index b856923..387cb39 100644 --- a/index.php +++ b/index.php @@ -8,14 +8,6 @@ namespace Index; define('NDX_ROOT', __DIR__); define('NDX_DIR_SRC', NDX_ROOT . DIRECTORY_SEPARATOR . 'src'); -// Only initialise the autoloader if Composer's autoloader doesn't exist yet -if(!class_exists(\Composer\Autoload\ClassLoader::class)) { - require_once NDX_DIR_SRC . DIRECTORY_SEPARATOR . 'Autoloader.php'; - - Autoloader::addNamespace(__NAMESPACE__, NDX_DIR_SRC); - Autoloader::register(); -} - // currently phpstan sucks and relies on error suppression, luckily it leaves a constant! if(!defined('__PHPSTAN_RUNNING__')) { // defining this WILL cause issues, never do it unless you HAVE to diff --git a/src/Autoloader.php b/src/Autoloader.php deleted file mode 100644 index 9530dd2..0000000 --- a/src/Autoloader.php +++ /dev/null @@ -1,108 +0,0 @@ -