public static function initialize()
 {
     if (self::$initialized) {
         return;
     }
     self::$paths = array();
     self::$initialized = true;
 }
示例#2
0
 /**
  * Load config file, setup autoload paths
  *
  * @param string $file
  * @return void
  */
 public static function init($file)
 {
     if (is_readable(DOCUMENT_ROOT . '/' . $file)) {
         self::$paths = (require $file);
         spl_autoload_register(array('Autoload', 'load'));
     } else {
         exit("fail setup autoloding paths");
     }
 }