X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses.php;h=49867957408e9e578f7968efcecc7a33a7ab1355;hp=980d71b2ff00eccf071085eca44b3269ab1a2928;hb=8020d9e6f9ddbb84a25021944d69e164afd3bf58;hpb=361e6320e50a8bb1a3ccb675388b8042361669ae diff --git a/inc/classes.php b/inc/classes.php index 980d71b2..49867957 100644 --- a/inc/classes.php +++ b/inc/classes.php @@ -23,17 +23,17 @@ // Lower framework classes $lowerClasses = array( - 0 => "exceptions", // Exceptions - 1 => "interfaces", // Interfaces - 2 => "main", // General main classes - 3 => "middleware" // The middleware + 0 => 'exceptions', // Exceptions + 1 => 'interfaces', // Interfaces + 2 => 'main', // General main classes + 3 => 'middleware' // The middleware ); // Load all classes foreach ($lowerClasses as $className) { // Try to load the framework classes try { - ClassLoader::getInstance()->loadClasses(sprintf("inc/classes/%s/", $className)); + ClassLoader::getInstance()->scanClassPath(sprintf("inc/classes/%s/", $className)); } catch (PathIsNoDirectoryException $e) { ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path %s for the follwing reason: %s", $className