From ef35c5aebaa717e882981cc4522af3149584ebfb Mon Sep 17 00:00:00 2001 From: Greg Sarjeant <1686767+gsarjeant@users.noreply.github.com> Date: Mon, 30 Jun 2025 08:49:56 -0400 Subject: [PATCH] Just fail hard if autoloader can't find class. --- config/bootstrap.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/bootstrap.php b/config/bootstrap.php index 555521f..3a0ed9e 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -24,17 +24,13 @@ function autoloader($className) { RecursiveIteratorIterator::LEAVES_ONLY ); + // I'm just going to let this fail hard if a requested class doesn't exist. foreach ($files as $file) { if ($file->getFilename() === $classFilename) { include_once $file->getPathname(); return; } } - - throw new SetupException( - "Could not load Class $className: " . $e->getMessage(), - 'load_classes' - ); } // Register the autoloader