diff --git a/Backend/Core/ClassLoader.php b/Backend/Core/ClassLoader.php index a7f93f6..91e0dbb 100644 --- a/Backend/Core/ClassLoader.php +++ b/Backend/Core/ClassLoader.php @@ -19,7 +19,7 @@ class ClassLoader public static function 파람(): void { $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Backend'), RecursiveIteratorIterator::SELF_FIRST); foreach($files as $file) - if (pathinfo($file->getFileName(), PATHINFO_EXTENSION) == 'php' && !str_contains($file->getPathname(), DIRECTORY_SEPARATOR . 'Libraries' . DIRECTORY_SEPARATOR . 'vendor')) + if (pathinfo($file->getFileName(), PATHINFO_EXTENSION) == 'php' && !str_contains($file->getPathname(), 'vendor')) self::$classes[str_replace('.php', '', $file->getFileName())] = $file->getPathname(); spl_autoload_register(function($className): void {