File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments