예제 #1
0
파일: MvcCore.php 프로젝트: mvccore/mvccore
 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;
 }
예제 #2
0
 public function Terminate()
 {
     MvcCore::Terminate();
 }