+++ /dev/null
-<?php
-// The application's class loader
-if (!isset($application)) {
- // We need this!
- ApplicationEntryPoint::app_die("[Main:] Interne Variable <strong>application</strong> nicht gefunden!");
-}
-
-// Load all classes for the application
-foreach ($lowerClasses as $class) {
- // Try to load the application classes
- try {
- ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", FrameworkConfiguration::getInstance()->readConfig("application_path"), $application, $class));
- } catch (PathIsNoDirectoryException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Grund: <strong>%s</strong>",
- $class,
- $e->getMessage()
- ));
- } catch (PathIsEmptyException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Grund: <strong>%s</strong>",
- $class,
- $e->getMessage()
- ));
- } catch (PathReadProtectedException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Grund: <strong>%s</strong>",
- $class,
- $e->getMessage()
- ));
- } catch (DirPointerNotOpenedException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] Kann Applikationsklassen im Pfad <strong>%s</strong> nicht laden. Grund: <strong>%s</strong>",
- $class,
- $e->getMessage()
- ));
- }
-}
-
-// Include all classes
-ClassLoader::getInstance()->includeAllClasses();
-
-// Clean up the global namespace
-unset($lowerClasses);
-unset($class);
-
-// [EOF]
-?>