Exemplo n.º 1
0
<?php

require_once 'config.php';
//OVERRIDE THE DEFAULT AUTOLOAD TO PREVENT REPEATED
//DIRECTORY SCANNING IN A PRODUCTION ENVIRONMENT
RocketSled::autoload(DataBank::autoload());
//RUN THAT SHIT! http://www.youtube.com/watch?v=N_PX3DWH0nE
RocketSled::run();
Exemplo n.º 2
0
 public static function autoload(Closure $autoload = NULL)
 {
     self::instance();
     if ($autoload !== NULL) {
         if (self::$autoload !== NULL) {
             spl_autoload_unregister(self::$autoload);
         }
         self::$autoload = $autoload;
         spl_autoload_register(self::$autoload);
     } else {
         return self::$autoload;
     }
 }