X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses.php;h=49867957408e9e578f7968efcecc7a33a7ab1355;hp=78bafebbf89cbc5e23f319f9d811473ca73c0f6b;hb=3107989f93cfb5808ce9d75f1c7d2b7ee3d83d18;hpb=c6d73b0e3246efc824cb98338d4be7ee5bc9f308 diff --git a/inc/classes.php b/inc/classes.php index 78bafebb..49867957 100644 --- a/inc/classes.php +++ b/inc/classes.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version * * This program is free software: you can redistribute it and/or modify @@ -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