Ejemplo n.º 1
0
 /**
  * Autoload registrieren
  */
 public static function register()
 {
     if (self::$registered) {
         return;
     }
     self::$composer = (include dir::vendor('autoload.php'));
     // kein Autoload da wir den PSR-0 Standard von loadClass() benutzen
     self::$composer->unregister();
     if (spl_autoload_register([__CLASS__, 'autoloader']) === false) {
         //throw new Exception();
     }
     self::loadCache();
     register_shutdown_function([__CLASS__, 'saveCache']);
     self::$registered = true;
 }