Skip to content

Commit 6831a96

Browse files
committed
fix: Bug in Finding Class Loader Path
1 parent 59e3ef9 commit 6831a96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WebFiori/Framework/App.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public static function initiate(string $appFolder = 'App', string $publicFolder
367367
/**
368368
* Path to WebFiori's core library.
369369
*/
370-
define('WF_CORE_PATH', ROOT_PATH.DS.'vendor'.DS.'WebFiori'.DS.'framework'.DS.'WebFiori'.DS.'framework');
370+
define('WF_CORE_PATH', ROOT_PATH.DS.'vendor'.DS.'webfiori'.DS.'framework'.DS.'WebFiori'.DS.'Framework');
371371
}
372372
self::initAutoLoader();
373373
self::checkStandardLibs();
@@ -616,6 +616,10 @@ private static function initAutoLoader() {
616616
*/
617617
if (!class_exists('WebFiori\Framework\Autoload\ClassLoader',false)) {
618618
$autoloader = WF_CORE_PATH.DIRECTORY_SEPARATOR.'Autoload'.DIRECTORY_SEPARATOR.'ClassLoader.php';
619+
620+
if (!file_exists($autoloader)) {
621+
throw new \Exception('Unable to locate the autoloader class.');
622+
}
619623
require_once $autoloader;
620624
}
621625
self::$AU = ClassLoader::get();

0 commit comments

Comments
 (0)