Skip to content

Commit

Permalink
Fix vendor path in ClassLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schindler committed Oct 27, 2022
1 parent 49faaef commit b2e61c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/Core/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b2e61c9

Please sign in to comment.