2 // The application's class loader
3 if (!isset($application)) {
5 ApplicationEntryPoint::app_die("[Main:] Interne Variable <strong>application</strong> nicht gefunden!");
8 // Load all classes for the application
9 foreach ($lowerClasses as $class) {
10 // Try to load the application classes
12 ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", FrameworkConfiguration::getInstance()->readConfig("application_path"), $application, $class));
13 } catch (PathIsNoDirectoryException $e) {
14 ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Reason: <strong>%s</strong>",
18 } catch (PathIsEmptyException $e) {
19 ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Reason: <strong>%s</strong>",
23 } catch (PathReadProtectedException $e) {
24 ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Reason: <strong>%s</strong>",
28 } catch (DirPointerNotOpenedException $e) {
29 ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Reason: <strong>%s</strong>",
36 // Include all classes
37 ClassLoader::getInstance()->includeAllClasses();
39 // Clean up the global namespace