Example #1
0
 /**
  * Application entry point.
  */
 public static function start()
 {
     // hide errors
     error_reporting(E_ALL);
     ini_set('display_errors', 0);
     // use UTC on server
     date_default_timezone_set('UTC');
     // error/exception Handlers
     set_error_handler([__CLASS__, 'error']);
     set_exception_handler([__CLASS__, 'exception']);
     register_shutdown_function([__CLASS__, 'shutdown']);
     // configuration
     define('BRAMBLE_URL', self::get_app_url());
     Stopwatch::start()->register();
     Log::time('~init');
     // handle request
     Request::execute();
 }