<?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();
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; } }