public static function registerHandler() { set_exception_handler(array(__CLASS__, 'handleUncaughtException')); set_error_handler(array(__CLASS__, 'handlePHPError'), E_ALL); }