Example #1
0
 private static function _dispatchException($e)
 {
     if (class_exists('AppShrinker_Php')) {
         return;
     }
     $production = MvcCore::GetEnvironment() == 'production';
     if (class_exists('Debug')) {
         if ($production) {
             Debug::log($e);
             self::_renderError($e->getMessage());
         } else {
             Debug::_exceptionHandler($e);
         }
     } else {
         if ($production) {
             self::_renderError($e->getMessage());
         } else {
             throw $e;
         }
     }
     exit;
 }
Example #2
0
 public function Terminate()
 {
     MvcCore::Terminate();
 }